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?
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?