Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Upload failed. X file(s) of X could not be uploaded.
https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=2695
Page 1 of 1

Author:  Doc [ 31. Aug 2010, 18:43 ]
Post subject:  Upload failed. X file(s) of X could not be uploaded.

Been reading the various posts on this, but I should comment that this was a working system until my hosting site did some server upgrades (the details of which they refuse to comment on). They claim they increased the PHP memory limit - which is wierd since they say it's in the .htaccess file, but it seems to be commented out in there -- but since then, I've not been able to upload files, getthing the above error.

The site is http://www.metrowesthog.com/Gallery

PHP version >= 4.3.0 Yes (5.2.14)
- XML support Available
- GD lib support Available
- GD lib >= 2.0 Yes (2.0.34)
- File Uploads Available
- Upload max filesize 20M

There's a file: error_log in the admin/uploads directory which shows a series of:

PHP Warning: POST Content Length exceeds the limit of 20 bytes in unknown on line 0

I have no idea what this means.

HELP!?

Author:  TinyWebGallery [ 31. Aug 2010, 18:56 ]
Post subject: 

Looks like the php post_max_size is set to 20 instead of 20 MB.
But all the configs say it is 20 MB...

how does the .htaccess look like. I know that this sometimes happend if there are invalid values.

e.g (wrong).
php_flag post_max_size 128M
instead of (o.k.)
php_value post_max_size 128M

- Michael

Author:  Doc [ 31. Aug 2010, 19:17 ]
Post subject: 

Here's the whole file as created by my hosting company in the HTML root for this site:

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 85.140.8.0/24
deny from 93.174.93.0/24
deny from 194.8.74.0/23
deny from 91.76.0.0/15
deny from 91.78.0.0/17
deny from 85.140.10.0/24
deny from 95.215.1.0/24

<IfModule php_config>
php_value default_socket_timeout 1800
php_value max_execution_time 1800
php_value max_input_time 1800
#php_value memory_limit 55M
php_value post_max_size 20M
php_value upload_max_filesize 20M
</IfModule>

Author:  Doc [ 31. Aug 2010, 21:41 ]
Post subject: 

OK, Michael... Not sure why, but working from your hint, and the info from:

http://www.php.net/manual/en/ini.core.p ... x-filesize

I modified the .htaccess as follows:

<IfModule php_config>
php_value default_socket_timeout 1800
php_value max_execution_time 1800
php_value max_input_time 1800
php_value memory_limit 67108864
php_value post_max_size 20971520
php_value upload_max_filesize 20971520
</IfModule>


Guess what? IT WORKS!!!

I'm wondering if the "20M" needs to be in quotes or something like that?

Not sure why it was working before the mysterious "server upgrade"...

Author:  TinyWebGallery [ 31. Aug 2010, 23:44 ]
Post subject: 

different version of php seems to read this values differently.

But good to know that this can be the problem!

- Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/