This repository was archived by the owner on Oct 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 3030 "types-generate" : " dts-gen -m '@supabase/storage-js' -s" ,
3131 "test" : " run-s test:clean test:infra test:suite test:clean" ,
3232 "test:suite" : " jest --runInBand" ,
33- "test:infra" : " cd infra && docker- compose down && docker- compose up -d --build && sleep 10" ,
34- "test:clean" : " cd infra && docker- compose down --remove-orphans" ,
33+ "test:infra" : " cd infra && docker compose down && docker compose up -d --build && sleep 10" ,
34+ "test:clean" : " cd infra && docker compose down --remove-orphans" ,
3535 "docs" : " typedoc --entryPoints src/index.ts --out docs/v2 --entryPoints src/packages/* --excludePrivate --excludeProtected" ,
3636 "docs:json" : " typedoc --json docs/v2/spec.json --entryPoints src/index.ts --entryPoints src/packages/* --excludePrivate --excludeExternals --excludeProtected"
3737 },
Original file line number Diff line number Diff line change @@ -92,11 +92,10 @@ export default class StorageFileApi {
9292 if ( typeof Blob !== 'undefined' && fileBody instanceof Blob ) {
9393 body = new FormData ( )
9494 body . append ( 'cacheControl' , options . cacheControl as string )
95- body . append ( '' , fileBody )
96-
9795 if ( metadata ) {
9896 body . append ( 'metadata' , this . encodeMetadata ( metadata ) )
9997 }
98+ body . append ( '' , fileBody )
10099 } else if ( typeof FormData !== 'undefined' && fileBody instanceof FormData ) {
101100 body = fileBody
102101 body . append ( 'cacheControl' , options . cacheControl as string )
You can’t perform that action at this time.
0 commit comments