Skip to content
This repository was archived by the owner on Apr 6, 2022. It is now read-only.
This repository was archived by the owner on Apr 6, 2022. It is now read-only.

FormData is not defined #94

Description

@krishna-777

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions