Open nirajchaurasiya opened 7 months ago
@nirajchaurasiya the first place I would start looking is this line of code in BusBoy, which is what multer
uses behind the scenes.
I'm guessing the browser doesn't know what file type .mkv
is and is setting the content-type
to application/octet-stream
.
I am uploading file from frontend to get URL but when I upload the file with multer, it automatically changes the file type on the backend.
I used word changes here because the file type shows correct on the frontend. For example: the file I am uploading is of type
But on the backend it shows:
Why does it change the file type?