Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File size is 0 for quicktime files #183

Open
jahaskell53 opened this issue Jul 5, 2022 · 4 comments · May be fixed by #204
Open

File size is 0 for quicktime files #183

jahaskell53 opened this issue Jul 5, 2022 · 4 comments · May be fixed by #204

Comments

@jahaskell53
Copy link

jahaskell53 commented Jul 5, 2022

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

@amcjen
Copy link

amcjen commented Jul 28, 2022

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

@ingfraga
Copy link

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

@amcjen
Copy link

amcjen commented Nov 17, 2022

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.

@lehni lehni linked a pull request Mar 15, 2023 that will close this issue
@lehni
Copy link

lehni commented Mar 15, 2023

I just had the same problem and fixed this in #204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants