Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ok
  • Loading branch information
crlnravel committed Jan 1, 2025
2 parents 9a30b99 + ac84726 commit 551e920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/s3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const s3 = new S3Client({
const uploadFile = async (file: File, key?: string, folder?: string) => {
const formData = new FormData();

formData.append('file', file as Blob);
formData.append('file', file);
formData.append('data', JSON.stringify({ key, folder }));

// Fetch
Expand Down

0 comments on commit 551e920

Please sign in to comment.