MantisBT - Piwigo
View Issue Details
0000941Piwigoweb APIpublic2009.03.13 00:062009.03.13 00:20
normalminorhave not tried
Apache 1.3.x
0000941: [pwg.images.add] heavy photo upload fails
related to bug:939 in pLoader, but not specific to pLoader (tools/ encounters the same issue), uploading an heavy file sometimes fails, the maximum weight depending from post_max_size in the php.ini files and some other settings that I don't even know where to change.
No tags attached.
related to 0000939closed rosman pLoader upload fails on heavy photos 
Issue History
2009.03.13 00:06plgNew Issue
2009.03.13 00:06plgStatusnew => assigned
2009.03.13 00:06plgAssigned To => plg
2009.03.13 00:06plgbrowser => any
2009.03.13 00:06plgWeb server => Apache 1.3.x
2009.03.13 00:19plgNote Added: 0002524
2009.03.13 00:20plgRelationship addedrelated to 0000939
2009.03.13 00:20plgStatusassigned => closed
2009.03.13 00:20plgResolutionopen => fixed
2009.03.13 00:20plgFixed in Version => 2.0.1

2009.03.13 00:19   
Fixed on 2.0 in [Subversion] r3192
Merged on trunk in [Subversion] r3193

The solution I've implemented was to chunk the file on client side and merge chunks on server side. It nows runs well. The speed depends on the chunk individual size. For my 4.5MB photo (+web size and thumbnail), it takes:

chunk size; duration
100KB; 87s
200KB; 76s
500KB; 71s
1000KB; 69s
2000KB; 69s

The advantage of a small chunk size is that you can display a fine progress bar on client side.