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

Urgent: Zip download of multiple files not working
https://www.tinywebgallery.com/forum/viewtopic.php?f=13&t=3546
Page 1 of 2

Author:  BorderC [ 8. May 2013, 16:09 ]
Post subject:  Urgent: Zip download of multiple files not working

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.

Author:  TinyWebGallery [ 8. May 2013, 16:31 ]
Post subject:  Re: Urgent: Zip download of multiple files not working

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

Author:  BorderC [ 8. May 2013, 16:58 ]
Post subject:  Re: Urgent: Zip download of multiple files not working

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?

Author:  BorderC [ 8. May 2013, 17:08 ]
Post subject:  Re: Urgent: Zip download of multiple files not working

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?

Author:  BorderC [ 8. May 2013, 17:24 ]
Post subject:  Re: Urgent: Zip download of multiple files not working

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.

Author:  TinyWebGallery [ 8. May 2013, 21:43 ]
Post subject:  Re: Urgent: Zip download of multiple files not working

Strange that this should be a problem of the format. Can you provide 2 examplefiles?

Best, Michael

Author:  BorderC [ 9. May 2013, 17:54 ]
Post subject:  Re: Urgent: Zip download of multiple files not working

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...

Author:  TinyWebGallery [ 9. May 2013, 18:27 ]
Post subject:  Re: Urgent: Zip download of multiple files not working

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

Author:  BorderC [ 9. May 2013, 19:33 ]
Post subject:  Re: Urgent: Zip download of multiple files not working

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

Author:  TinyWebGallery [ 9. May 2013, 20:51 ]
Post subject:  Re: Urgent: Zip download of multiple files not working

See http://www.tinywebgallery.com/en/about.php

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

Best, Michael

Author:  BorderC [ 9. May 2013, 23:01 ]
Post subject:  Re: Urgent: Zip download of multiple files not working

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?

Author:  BorderC [ 10. May 2013, 17:32 ]
Post subject:  Re: Urgent: Zip download of multiple files not working

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!

Author:  TinyWebGallery [ 11. May 2013, 16:41 ]
Post subject:  Re: Urgent: Zip download of multiple files not working

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

Author:  BorderC [ 12. May 2013, 14:09 ]
Post subject:  Re: Urgent: Zip download of multiple files not working

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.

Author:  TinyWebGallery [ 12. May 2013, 20:56 ]
Post subject:  Re: Urgent: Zip download of multiple files not working

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

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