Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
files bigger than 10240 https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=657 |
Page 1 of 1 |
Author: | v3nt [ 29. Nov 2006, 16:08 ] |
Post subject: | files bigger than 10240 |
hello - i've just bought the multi license set. However it wont let me add files to the list bigger that 10240. I've searched all the php .as but can't find this as a setting anywhere! |
Author: | TinyWebGallery [ 29. Nov 2006, 16:32 ] |
Post subject: | |
have you read howto 4 of the faq of TFU? . What does the flash say what is the maximum when it starts? /Michael |
Author: | v3nt [ 29. Nov 2006, 17:01 ] |
Post subject: | |
yes - both set to 20mb; #removed_broken_link D. |
Author: | TinyWebGallery [ 29. Nov 2006, 17:18 ] |
Post subject: | |
o.k. - this is good. What does the flash itself say? Because this value can actually set in the tfu_config manually too. It's one of the first entries. /michael |
Author: | v3nt [ 29. Nov 2006, 17:20 ] |
Post subject: | |
it says; Status: 'Please select your files to upload. Upload maximum file size (per file): 10240 k. ' |
Author: | TinyWebGallery [ 29. Nov 2006, 17:25 ] |
Post subject: | |
ok - open tfu_config.php and set the value manually - it seems that the getMaximumUploadSize() does returns a wrong value! change $maxfilesize = getMaximumUploadSize(); to $maxfilesize = getMaximumUploadSize()*2; then you should have 20M instead of 10M - interesting is why because the function is really easy: $upload_max = return_kbytes(ini_get('upload_max_filesize')); $post_max = return_kbytes(ini_get('post_max_size')); return $upload_max < $post_max ? $upload_max : $post_max; /Michael |
Author: | v3nt [ 29. Nov 2006, 17:51 ] |
Post subject: | |
that's worked! is strange though. D. |
Author: | TinyWebGallery [ 29. Nov 2006, 18:09 ] |
Post subject: | |
if you like to debug - check what are the values of the $upload_max = return_kbytes(ini_get('upload_max_filesize')); $post_max = return_kbytes(ini_get('post_max_size')); with debug($upload_max); and debug($post_max); results are in the tfu.log . /Michael |
Author: | v3nt [ 29. Nov 2006, 18:42 ] |
Post subject: | |
mmm - i keep getting this with files over 10mb regardless of the fact that i've got 20mb limits... Upload failed. 1 file(s) of 1 could not be uploaded. http://www.jynk.net/folio3/youradmin/fl ... d2/tfu.log (ignore the Error 8 bits) also i've changed; function getMaximumUploadSize() { $upload_max = return_kbytes(ini_get('upload_max_filesize')); $post_max = return_kbytes(ini_get('post_max_size')); $post_max = ($post_max)*2; return $upload_max < $post_max ? $upload_max : $post_max; } and the debus come from this; $maxfilesize = getMaximumUploadSize()*2; // The max files size limit of the server $resize_show = is_gd_version_min_20(); $upload_max = return_kbytes(ini_get('upload_max_filesize')); $upload_max = ($upload_max)*2; $post_max = return_kbytes(ini_get('post_max_size')); $post_max = ($post_max)*2; debug($maxfilesize); debug($upload_max); debug($post_max); this is quite import as most of the files are film trailers and about 12mb in size! |
Author: | TinyWebGallery [ 29. Nov 2006, 18:49 ] |
Post subject: | |
you are playing around - it still seems that one of your limits it set to 10MB. *2 does not change anything - only that the flash does accept more in the quere but not the server ... If you output all limits without any changes you get upload_max_filesize = 10 MB and this is the limit I think! Have you canged this values and restarted the webserver? - because maybe it only changed in the php.ini - the php_inofo shows the stuff from the php.ini but the server still has the 10Mb limit internally! /Michael |
Author: | v3nt [ 30. Nov 2006, 12:20 ] |
Post subject: | |
ok - got it. There was a .htaccess file making it 10 mb from an old upload methed i used to use! Everything is ok and thanks very much! D. |
Author: | TinyWebGallery [ 30. Nov 2006, 12:21 ] |
Post subject: | |
good to know - can you please post what was in the .htaccess and where it was located? - i'll add this to the FAQ. /Michael |
Author: | v3nt [ 30. Nov 2006, 13:11 ] |
Post subject: | |
php_value memory_limit 24M php_value upload_max_filesize 10M php_value max_execution_time 300 // i just used it as i never used to have access to my php.ini |
Author: | TinyWebGallery [ 30. Nov 2006, 13:26 ] |
Post subject: | |
But this not working on many server I think - because then I would be able to increase the upload limit on every server. But good to know - i'll add this to the FAQ what users can try to increase their upload limit. /Michael |
Author: | flogro [ 24. May 2007, 21:38 ] |
Post subject: | |
Quote: But this not working on many server I think - because then I would be able to increase the upload limit on every server.
for me it does, i can increase the memory limit and upload limit - thanks for the hint. |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |