Skip to content

Commit 7bcf8b3

Browse files
committed
refactor: clean up formData on file upload/update
1 parent b2f5b0c commit 7bcf8b3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/lib/storage/StorageApi.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ export class StorageApi {
107107
if (!isBrowser()) throw new Error('No browser detected.')
108108

109109
const formData = new FormData()
110-
formData.append('cacheControl', '3600')
111-
formData.append('', file, file.name)
112110
formData.append('', file, file.name)
113111

114112
const res = await fetch(`${this.url}/object/${path}`, {
@@ -143,7 +141,6 @@ export class StorageApi {
143141
if (!isBrowser()) throw new Error('No browser detected.')
144142

145143
const formData = new FormData()
146-
formData.append('cacheControl', '3600')
147144
formData.append('', file, file.name)
148145

149146
const res = await fetch(`${this.url}/object/${path}`, {

0 commit comments

Comments
 (0)