I’m setting up a website to upload images and videos from my phone to my PC.
I tried a simple input field with multiple selection and using multer on the backend to store the files on my PC (which is running both frontend and backend), but I can’t seem to upload more than 10 images at a time. The page refreshes too quickly, and I can’t find a way to stop the refresh or wait for all the files to upload.
Is there another approach to accomplish this?
Thanks for your help!
Are you saying uploads of less than 10 images work all the time? If so, you might be hitting a size limit on your server like another user mentioned. Check the total sizes of the files you’re trying to upload, and log the result if it fails. Are you going through Cloudflare? They have a 100MB limit on uploads.
Eli said: @Ellis
Everything is on my local network, no Cloudflare, and there’s no file size limit.
That’s strange. Requests should wait for a response (or timeout), so there shouldn’t be any “refresh” happening too quickly. But definitely check the response from the server when you send the request; it could be throwing an error.
What’s causing the refresh? A standard HTTP multipart form POST will not refresh until all the data has been sent to the server and a response has started coming back.
How are you currently implementing it? Is there any JavaScript involved?
There isn’t much information for us to help with here.