CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 HELP: time session for upload

Print topic Send  topic

Author Message
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.


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.