rowanwins / vue-dropzone

A Vue.js component for Dropzone.js - a drag’n’drop file uploads utility with image previews
https://rowanwins.github.io/vue-dropzone/docs/dist
MIT License
2.02k stars 1.4k forks source link

application/octet-stream #626

Closed xlcrr closed 1 year ago

xlcrr commented 1 year ago

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 ?

            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'
            },
xlcrr commented 1 year ago

Right after I posted I found the solution.

add application/jpeg to your acceptedFiles.

 acceptedFiles: 'image/*,.heic,.heif,application/jpeg'