Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by gmwebs on Sep 15, 2008 15:02
open dhtmlx forum
dhtmlXVault: Upload Size Limit

Firstly, this question is not realted to PHP INI file settings as they are set very high and I am able to successfully upload a file using a normal form - i.e. bypass the vault.

As soon as I try to upload the same file using the vault the script returns an error although I am able to upload files smaller than 1MB successfully.

There must be something getting in the way but I can't seem to find it. I have set this.MAX_FILE_SIZE.value = '99000000000' but has not helped.

I would appreciate any assistance...
Answer posted by Support on Sep 17, 2008 02:03

There are four important constants:

upload_max_filesize = 500M
post_max_size = 508M
max_execution_time = 900
max_input_time = 900

Please check all of them and get back to us.

Answer posted by gmwebs on Sep 17, 2008 02:31

As stated in my first post, all those settings are correct. I used the values from the documentation which coincides with the ones you have posted.

If I check Apache's access_log it shows the POST of the sessionId, fileName and userfile as expected. The file is arriving in the /tmp folder but then disappears immediately and the Vault shows ERROR. If I create a normal form and use that to upload to the same upload script, everything works fine - which proves that it is nothing to do with the POST, TIMEOUT, SIZE limits, etc.

I am able to upload files that are relatively small in size with the Vault, but as soon as I go above around 1MB, it just shows ERROR.

The entry in the access_log is:

 "POST /Uploads/photoUploadHandler/1?sessionId=id48d0caa389cc2&fileName=Glamour12.jpg&userfile=file1 HTTP/1.1" 302 371 "http://www.domain.com/admin/gallery_photos/add/1"

If there is anything else you need to assist me in troubleshooting this then let me know and I will get it to you.