You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to upload image to s3 bucket with aws-sdk and formidable-serverless, but I got error when uploading the image from frontend, here is my code in use:
This doesn't look like an issue with formidable-serverless...
You might need to look into handling streams / piping them into S3. Or check the type of files.file and make sure it matches what's expected by the S3 client for the Body input. It looks odd that you're using files.file.name and then using files.file - you're feeding the object to Body instead of the file body (are you sure the body is at files.file?)
Anyways, this is beyond the scope of formidable-serverless.
I am trying to upload image to s3 bucket with
aws-sdk
andformidable-serverless
, but I got error when uploading the image from frontend, here is my code in use:Here is the error I can't handle with:
console.log(file)
shows:When I set
Body
toBody: toString(files.file)
then I can upload but the uploaded image can not be opened.The text was updated successfully, but these errors were encountered: