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
{{ message }}
This repository was archived by the owner on Apr 6, 2022. It is now read-only.
I got the error like in console :
ReferenceError: FormData is not defined
at s.uploadFile (../app-cms/server/node_modules/aws-s3/dist/aws-s3.js:1:1591)
Please Define the FromData in the S3Client file. I saw the GitHub code and it's really not defined. I used strict mode on and Eslint so I can't move further with this error
My code is,
const S3Client = new S3(config)
const image = await req.files.profile_picture
const imageName = uuid.v4() + 'user_profile'
const upload = S3Client.uploadFile(image, imageName).then((response)=>{
console.log(response)
}).catch( (err) =>{
console.log(err)
})
I got the error like in console :
ReferenceError: FormData is not defined
at s.uploadFile (../app-cms/server/node_modules/aws-s3/dist/aws-s3.js:1:1591)
Please Define the FromData in the S3Client file. I saw the GitHub code and it's really not defined. I used strict mode on and Eslint so I can't move further with this error