adminjs-upload icon indicating copy to clipboard operation
adminjs-upload copied to clipboard

ContentType AWS

Open irenmax opened this issue 5 years ago • 0 comments

When uploading a file to AWS, the ContentType of the uploaded file is not set properly. For example, the MimeType of an uploaded image to the edit page of a record is image/png but on S3, the ContentType is binary/octet-stream after the image upload to AWS in complete. I managed to set the right ContentType for the upload by adding ContentType: file.type to the upload params inside the aws-provider.

Did I miss setting an option for the uploadFeature in my project or is this a bug?

irenmax avatar Nov 16 '20 20:11 irenmax