anacronw / multer-s3

multer storage engine for amazon s3
MIT License
660 stars 190 forks source link

Larger files fail silently #179

Closed aug2uag closed 2 years ago

aug2uag commented 2 years ago

I've encountered an issue where larger file sizes (⪆ 25MB) silently fail. This issue was reported several times elsewhere by others for example here, [issue #69], another, and there are more.

The params are missing AWS ContentLength property. I tested this and verified adding ContentLength resolved my issue.

aug2uag commented 2 years ago

Update: this seemed to have solved my issue on localhost yet it turned out my issues in staging were related to web proxy configs that have been sorted out. Feel free to close this issue. I'll get around to testing my staging instance without the ContentLength in params and will report back if there are any findings.

elirichey commented 2 years ago

@aug2uag Can you please elaborate which configs you updated? I'm running into the same issue.

aug2uag commented 2 years ago

@elirichey it depends on your webproxy (whether you use one), for me on NGINX it was related to proxy_pass and experimenting with settings related there