multer-s3 icon indicating copy to clipboard operation
multer-s3 copied to clipboard

File size is 0 for quicktime files

Open jahaskell53 opened this issue 2 years ago • 4 comments

when uploading a .mov file to multer-s3, it returns a file obj that has 0 for its fileSize property

jahaskell53 avatar Jul 05 '22 14:07 jahaskell53

I'm seeing the same thing for .wav and .aiff files. .aac, .m4v, .mp3, all work though.

amcjen avatar Jul 28 '22 00:07 amcjen

Same for Excel files! Any solution? or any other way to fetch the size?

ingfraga avatar Nov 17 '22 00:11 ingfraga

Same for Excel files! Any solution? or any other way to fetch the size?

My solution was to fetch the filesize client-side and pass it over in the request body instead of server-side. Not sure that works for everyone, but resolved the issue for me perfectly.

The Javascript File interface offers a size property.

amcjen avatar Nov 17 '22 19:11 amcjen