Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 28. Mar 2024, 18:32

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: files bigger than 10240
PostPosted: 29. Nov 2006, 16:08 
Offline

Joined: 28. Nov 2006, 14:22
Posts: 23
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!


Top
 Profile  
 
 Post subject:
PostPosted: 29. Nov 2006, 16:32 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
have you read howto 4 of the faq of TFU? ;).

What does the flash say what is the maximum when it starts?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 29. Nov 2006, 17:01 
Offline

Joined: 28. Nov 2006, 14:22
Posts: 23
yes - both set to 20mb;
#removed_broken_link

D.


Top
 Profile  
 
 Post subject:
PostPosted: 29. Nov 2006, 17:18 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 29. Nov 2006, 17:20 
Offline

Joined: 28. Nov 2006, 14:22
Posts: 23
it says;
Status: 'Please select your files to upload. Upload maximum file size (per file): 10240 k. '


Top
 Profile  
 
 Post subject:
PostPosted: 29. Nov 2006, 17:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 29. Nov 2006, 17:51 
Offline

Joined: 28. Nov 2006, 14:22
Posts: 23
that's worked! is strange though.

D.


Top
 Profile  
 
 Post subject:
PostPosted: 29. Nov 2006, 18:09 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 29. Nov 2006, 18:42 
Offline

Joined: 28. Nov 2006, 14:22
Posts: 23
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!


Top
 Profile  
 
 Post subject:
PostPosted: 29. Nov 2006, 18:49 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 30. Nov 2006, 12:20 
Offline

Joined: 28. Nov 2006, 14:22
Posts: 23
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.


Top
 Profile  
 
 Post subject:
PostPosted: 30. Nov 2006, 12:21 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 30. Nov 2006, 13:11 
Offline

Joined: 28. Nov 2006, 14:22
Posts: 23
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


Top
 Profile  
 
 Post subject:
PostPosted: 30. Nov 2006, 13:26 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 24. May 2007, 21:38 
Offline

Joined: 30. Jan 2007, 22:33
Posts: 7
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 - :D
thanks for the hint.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy