Closed xlcrr closed 1 year ago
When I try to upload a jpg or jpeg, my backend shows me this mimeType application/octet-stream
application/octet-stream
pngs work fine
Why are my files being converted from jpeg to application/octet-stream ?
options: { url: '/upload', thumbnailWidth: 150, maxFilesize: 20, headers: { 'X-CSRF-TOKEN': window.axios.defaults.headers.common['X-CSRF-TOKEN'] }, includeStyling: true, duplicateCheck: true, paramName: 'file', acceptedFiles: 'image/*,.heic,.heif' },
Right after I posted I found the solution.
add application/jpeg to your acceptedFiles.
application/jpeg
acceptedFiles: 'image/*,.heic,.heif,application/jpeg'
When I try to upload a jpg or jpeg, my backend shows me this mimeType
application/octet-stream
pngs work fine
Why are my files being converted from jpeg to
application/octet-stream
?