This topic is locked

File uploading >2M problems

10/30/2007 7:29:37 AM
PHPRunner General questions
M
msutherland author

Dear forum members,
I am trying to create a system that allows users to upload files (up to 50M) for plotting. It works fine for small files, but there is still the problem of uploading files > 2Mb. I have changed all the appropriate entries in php.ini to 50M, changed the appropriate entries in my.cnf etc, re-started mysqld, httpd etc, but still it doesn't work. Strangly when you click on Save (on the add form) with Firefox after a short delay it asks "You have chosen to open orders_add.php". Why should it be returning a php file to the browser? With IE I get a "page can not be displayed" after a short delay. I really am banging my head against a wall over this one and client is not impressed. I have googled for hours over this matter with no joy. Please, please help me.
phpRunner 4.1 Build 320

php 4

mysql 4.1.20

Centos Server 4.5
Regards,
Martin

Alexey admin 10/30/2007

Martin,
at first uncheck "Show friendly error messages" option in IE Internet options->Advanced.

Then restart IE and upload file again.
An error message should appear in the browser.

Show me that message.

M
msutherland author 10/30/2007

Martin,

at first uncheck "Show friendly error messages" option in IE Internet options->Advanced.

Then restart IE and upload file again.
An error message should appear in the browser.

Show me that message.


I just wrote my own PHP upload script to see if a more useful error message is displayed and get this from Firefox:
Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 28168135 bytes) in /var/www/html/upload.php on line 27
This seems to show that allowed memory is fine!
On IE, despite changing the setting that you suggest, it just says page can not be displayed (orders_add.php)
I should add that I have increased the php options max_execution_time and max_input_time to 1000 seconds also, but the pause before the page can be displayed is only a few seconds

Alexey admin 10/31/2007

Martin,
could you give me a URL to your Add page where I can see the error ?

Send it to support@xlinesoft.com along with the problem description.

W
webmaster 11/1/2007

Was the problem "With IE I get a "page can not be displayed" after a short delay" ever solved. If it was, how was it solved, or is there a file size and file type (upload problem) when uploading to a "files" directory in the server when using IE?

M
msutherland author 11/14/2007

I never managed to resolve this problem with PHP/Apache on linux. Tried PHP/Apache on Windows with the same results. Tried to use PHP on IIS on Windows and couldn't get it to work (permissions problems). Finally changed to IIS and ASP on Windows and it now works. It is very disappointing to have to go down the MS route!

Alexey admin 11/15/2007

webmaster,
at first uncheck "Show friendly error messages" option in IE Internet options->Advanced.

Then restart IE and upload file again.
An error message should appear in the browser.

Show me that message.
Martin,

if you are still interested to get the uploading working with PHPRunner show me the error message you get with orders_add.php and Firefox.