Skip to content

Commit 87db602

Browse files
committed
fix(assets): enable protected asset upload
1 parent 4fc83a4 commit 87db602

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: src/api/assets.ts

-4
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ async function createAssetVersion(
126126
serviceSid: string,
127127
client: GotClient
128128
): Promise<VersionResource> {
129-
if (asset.access === 'protected') {
130-
throw new Error(`Asset ${asset.name} cannot be "protected".
131-
Please change it to have "private" or "public" access.`);
132-
}
133129
try {
134130
const contentType = getContentType(
135131
asset.content,

0 commit comments

Comments
 (0)