Help with file upload failing

Hello,

I have a form with file upload field (set to multiple). It works 100% with small jpgs

However when i upload total files above ~10mb it takes a while to upload and then i get error 404. I can’t figure it out.

My htaccess settings are bellow (verified with phpinfo):
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 240
php_value max_input_time 120
php_value default_socket_timeout 6000
php_value max_input_vars 10000
php_value memory_limit 128M
php_value upload_max_filesize 32M
php_value post_max_size 64M

I am using cloudflare, could that be affecting it?
It breaks at 24seconds which is not a value i see anywhere
Works fine on docker locally.

This is a limitation set by the server.

Not sure what the application is. If it is an online printing shop needing large images, then you may need to limit the number of images that can be uploaded at any one time.

If the images are for an online image gallery, the the size of the uploaded images should be limited.

The following folder shows 15 images averaging 2.5MB each. When I go to email these 15 images, Windows asks me to reduce their size as in

Thanks,

How/Where do you get that window? i have never seen it in my life :slight_smile: looks useful

/J

I had to add this to htaccess to increase the value:

LimitRequestBody 64240000

/J

2 Likes

  1. Right click the selected files
  2. Choose Send to
  3. Choose Mail recipient

Thanks personally i use this for years:


1 Like

hi hi… please help us vote for this

1 Like