LetoDMS Community Forum
Big FIle Upload Error - Invalid Folder ID - Printable Version

+- LetoDMS Community Forum (https://community.letodms.com)
+-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4)
+--- Forum: Bugs/Errors (https://community.letodms.com/forumdisplay.php?fid=11)
+--- Thread: Big FIle Upload Error - Invalid Folder ID (/showthread.php?tid=202)



Big FIle Upload Error - Invalid Folder ID - KoS - 11-12-2010

Hi

i have increased in php.ini the upload_max_filesize to 40M and i'm trying to upload a 25MB file. when i use smaller files, it works, but when i try the 25MB file, i get after the upload only the red error message "Invalid Folder ID". the log shows me the following message:
Code:
op.AddDocument UI::exitError error=Invalid Folder ID pagetitle=Folder 'Invalid Folder ID'

is this a bug or an error on my site?

greets
KoS




RE: Big FIle Upload Error - Invalid Folder ID - matteo lucarelli - 11-12-2010

It's strange.
Do you have some other details about?
Only add document gives this erroe? Have you test attachment or Update?

It could be a server timeout?

The "invalid folder id" error is only at the beginning of the script where $_POST["folderid"] is controlled.
You could add a:

echo $_POST["folderid"];

after the includes.. to verify if the posted var is corrupted.


RE: Big FIle Upload Error - Invalid Folder ID - Malcolm - 11-19-2010

I have a similar problem.
I am using PHP 5.2.14 and Mysql 5.0.67

When I upload files of > 10M when the limit is set to 50M in php.ini, I get the same error and the $_POST["folderid"] is null.

It works OK with smaller files.

Log only shows the Error


RE: Big FIle Upload Error - Invalid Folder ID - Malcolm - 11-19-2010

The solution was simple

There are two parameters in php.ini that affect the upload size.

If the size exceeds the upload_max_size you get an error notification.

If the size exceeds the post_max_size there is no error but the $_POST parameters appear to be blank.

The solution is obvious - set post_max_size greater or equal to upload_max_size


RE: Big FIle Upload Error - Invalid Folder ID - msanti - 02-27-2011

(11-19-2010, 08:06 AM)Malcolm Wrote: The solution is obvious - set post_max_size greater or equal to upload_max_size

With my ISP, having safe_mode set to OFF, I've put the following in a custom php.ini in folder /op/ :
post_max_size = 20M
upload_max_filesize = 20M
max_execution_time = 120



RE: Big FIle Upload Error - Invalid Folder ID - ssrini - 12-13-2012

This post was a life saver as I had the same issue. Remember it is important to also set max_execution_time to a higher number else the post data gets corrupted again.

Srini