Tam
|
| Posted: 08/31/2005, 8:03 AM |
|
Hi,
I am working in file upload and it's working fine as my file size is set 1 MB. As I increase the file size limit to 10MB, I got prolem.
Anytime I try to upload a file around 2MB up (browse file and hit submit), the error message said the file name is required while it's there. I don't know what's wrong with it, but I believe that my time session for uploading the file is expired.
If this is the case of expiring time session, can anyone show me where I can set the time longer? If not, please point out what cause the problem.
Thank you.
|
|
|
 |
wkempees
|
| Posted: 08/31/2005, 11:48 AM |
|
It is probably not a timeout problem, timeout will apply when the
process is running for a period longer than the set timeout without
anything happening (idle). It is a fail safe.
Your problem is most likely in the php.ini file where the maximum
filesize is set, standard 2MB.
If you have access to php.ini simply up the value and it will work (we
are doing 8Mb binary uploads).
to test and display run phpinfo()
Walter
|
|
|
 |
Damian Hupfeld
|
| Posted: 09/04/2005, 2:01 AM |
|
And if you dont have access to php.info then use .htaccess
Damian
"wkempees" <kempe819@planet.nl> wrote in message
news:df4u18$hdm$1@news.codecharge.com...
> It is probably not a timeout problem, timeout will apply when the process
> is running for a period longer than the set timeout without anything
> happening (idle). It is a fail safe.
>
> Your problem is most likely in the php.ini file where the maximum filesize
> is set, standard 2MB.
> If you have access to php.ini simply up the value and it will work (we are
> doing 8Mb binary uploads).
>
> to test and display run phpinfo()
>
> Walter
|
|
|
 |
wkempees
|
| Posted: 09/04/2005, 2:48 AM |
|
Afterthought:
Although PhP fas functions for setting upload_max_filesize s, these
settings have an odd behaviour. In short they don't work like we think.
If you set the upload_max_filesize to a value from within a php script
and then try to do a file upload your are too late. it's inherent to the
PhP internal logic.
Always try to set upload_max_filesize in php.ini to the max size ever to
be expected.
To Damian (pm):
Doing all-right, hope you all are too.
|
|
|
 |
|