Computing.Net > Forums > Web Development > PHP File Uploads

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PHP File Uploads

Reply to Message Icon

Name: Clicker
Date: November 23, 2004 at 13:37:36 Pacific
OS: Linux
CPU/Ram: 1.6 Gig/512 MB
Comment:

I have a PHP script running on a Linux box using Apache server. PHP script is used to upload files to the server.
When I try to upload files of size less that 1MB, it works fine, but when files larger than 1MB are uploaded I get a 404 error.

I have changed the upload size to 5MB in php.ini file, is there anything else to correct this.

Thanks in Advance




Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: November 23, 2004 at 13:41:35 Pacific
Reply:

Did you restart apache after changing php.ini?

-SN


0

Response Number 2
Name: Clicker
Date: November 23, 2004 at 15:44:08 Pacific
Reply:

yes apache has been restarted.


0

Response Number 3
Name: SN
Date: November 23, 2004 at 17:11:16 Pacific
Reply:

I can think of a few possible causes...
1. You forgot to set post_max_size, which needs to be greater than max_upload_size.
2. Your script is timing out on larger downloads...Change script timeout time.
3. You're exceeding max_input_time with larger files.

http://www.php.net/manual/en/features.file-upload.php

Good luck,
-SN


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: PHP File Uploads

PHP File Uploads with MiniApache www.computing.net/answers/webdevel/php-file-uploads-with-miniapache/1572.html

PHP File Upload www.computing.net/answers/webdevel/php-file-upload/1259.html

File Upload - PHP script www.computing.net/answers/webdevel/file-upload-php-script/1476.html