Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Big FIle Upload Error - Invalid Folder ID
#1
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

Reply
#2
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.
Reply
#3
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
Reply
#4
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
Reply
#5
(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
Reply
#6
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)