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 5. Dec 2024, 03:45

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  [ 21 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: 8. May 2013, 16:09 
Offline

Joined: 8. Mar 2011, 22:40
Posts: 39
I have encountered a problem with downloading multiple files as Zip archives. I have all the settings configured correctly (I think) but when I select multiple files for download, the Zip-file is created but downloads in a second and turns up empty (or maybe corrupted). Anyway, I cannot open the Zip file on my computer. Single files download ok. There are 28 PSD files weighing a total of 1052 MB in the batch.

Can you advise what might be wrong?

I am running the latest version of JFU and Joomla 2.5.11.

Your assistance is very much appreciated.


Top
 Profile  
 
PostPosted: 8. May 2013, 16:31 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
any errors in the log?
Possilbe problem could be that php simply is not able to create 1 GB zip files...
Does the creation of smaller ones (50 MB??) work

Best, Michael


Top
 Profile  
 
PostPosted: 8. May 2013, 16:58 
Offline

Joined: 8. Mar 2011, 22:40
Posts: 39
Thanks for your reply.

It works ok with multiple, considerably smaller JPEG-files - so it seems to be either the PSD format or the file sizes. Either way, is there a way to work around this problem?


Top
 Profile  
 
PostPosted: 8. May 2013, 17:08 
Offline

Joined: 8. Mar 2011, 22:40
Posts: 39
Hi again, I did a fast test of uploading/downloading sets of PSD and JPG images, each image weighing between 1.5 and 15 MB. The JPG's downloaded ok as ZIP, the PSD's didn't. So it leaning towards a file type issue. What do you think? If I am correct, is there anything I can do to fix the problem?


Top
 Profile  
 
PostPosted: 8. May 2013, 17:24 
Offline

Joined: 8. Mar 2011, 22:40
Posts: 39
Regarding the Log: It doesn't seem to give any errors or other indications that something is wrong. All files included in the different batch downloads, if JPG's or PSD's, are listed as "zipdownload" with correct images sizes and everything.


Top
 Profile  
 
PostPosted: 8. May 2013, 21:43 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Strange that this should be a problem of the format. Can you provide 2 examplefiles?

Best, Michael


Top
 Profile  
 
PostPosted: 9. May 2013, 17:54 
Offline

Joined: 8. Mar 2011, 22:40
Posts: 39
I am not able to upload the requested files, as your system doesn't allow PSD uploads and it doesn't work uploading Zip files either, Please advise what I should do.

Also, another strange observation regarding my problem:
Attempts to download PSD batches from my server creates ZIP archives with 0 KB size that are placed in the root of the Flash. Don't know if that information might be helpful...


Top
 Profile  
 
PostPosted: 9. May 2013, 18:27 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The files are created temporary in the main folder. So it seems it simply crashes when the file is created.
How much php memory do you have? Because you need min. 2 times the size of the file.

You can provide links to the files you upload to any hoster (e.g. dropbox)

Best, Michael


Top
 Profile  
 
PostPosted: 9. May 2013, 19:33 
Offline

Joined: 8. Mar 2011, 22:40
Posts: 39
Can I receive your email address to send a SugarSync link?

Here are my server settings (Can these be changed in the php.ini?):

PHP upload limit (in KB): 153600
PHP memory limit (in KB): 32768
Max. resize resolution: ~ 2603 x 1955
PHP max input time: 60 s
PHP max execution time: 30 s
Default socket timeout: 60 s


Top
 Profile  
 
PostPosted: 9. May 2013, 20:51 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
See http://www.tinywebgallery.com/en/about.php

And yes:
http://www.tinywebgallery.com/en/tfu/tfu_faq_14.php

Best, Michael


Top
 Profile  
 
PostPosted: 9. May 2013, 23:01 
Offline

Joined: 8. Mar 2011, 22:40
Posts: 39
I have sent you a link for download of sample images.

Do you think that you could guide me about how the execution time, timout etc. should be optimally set?


Top
 Profile  
 
PostPosted: 10. May 2013, 17:32 
Offline

Joined: 8. Mar 2011, 22:40
Posts: 39
Here is an update:

I have successfully changed my server settings as follows:

PHP upload limit (in KB): 153600
PHP memory limit (in KB): 1048576
PHP max input time: 480 s
PHP max execution time: 240 s
Default socket timeout: 60 s

The total size of the 28 PSD files described above is 1052 MB

This has (I think) improved the download capability somewhat, so that I can download around 10 of the PSD files as batch. Increasing the number above that, however, produces errors. I now get io errors.

My questions are:

To what must the server settings be configured in order to handle ZIP batch downloads of this size?
Which are the fundamental settings that need to be tuned?

You advise is much appreciated!


Top
 Profile  
 
PostPosted: 11. May 2013, 16:41 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
io error can be a timeout problem.
So any of your settings can cause the problem.
php time for creation. Sockettimeout for transfering the data...
In your case I would try to increase them as much as possible...

Best, Michael


Top
 Profile  
 
PostPosted: 12. May 2013, 14:09 
Offline

Joined: 8. Mar 2011, 22:40
Posts: 39
Thank you again for your advise. I am experimenting with different settings to see if I can overcome the problem. One thing I notice right away though, is that with increased limits the server is being put under heavy strain, making it hard or impossible for other users to access the site (500 errors). Can you advise a strategy for working around the problem? Should I move the JFU to another separate site? Or do you have any other tricks?

I really appreciate your expert advise.


Top
 Profile  
 
PostPosted: 12. May 2013, 20:56 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
You create a 1 gb zip file dynamically - this takes a lot of cpu power.

Or do you mean increasing the limits is a problem even when JFUploader ist not used?

then only increase the limits for the flash by placing a php.ini in the tfu folder...

Best, Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 20 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