Donaldcwl / browser-image-compression

Image compression in web browser
MIT License
1.3k stars 160 forks source link

package not working in deployed project #98

Closed JarrettD5309 closed 3 years ago

JarrettD5309 commented 3 years ago

Hello,

I'm using browser-image-compression in a MERN app I created. Everything is working fine locally. But for some reason the package does not appear to be working in the deployed version. I am only using the maxSizeMB option. The app is deployed to a DigitalOcean Ubuntu server. I am using multer on the server with a size limiter. When I try to upload a large image in the deployed application it takes maybe 30 seconds and then I receive an error from the server (multer) that says the image is too large. Any idea of what might be happening or how to track down the issue?

JarrettD5309 commented 3 years ago

This is a problem with a server setting. It is working now.