Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-24-2003, 03:23 PM
|
#1
|
|
Member
Registered: Nov 2002
Location: USA
Distribution: Lenny at work
Posts: 168
Rep:
|
PHP and File Uploading
This is driving me nuts! I am using Mozilla to upload some files via PHP onto my webserver. On some files like PHP-Nuke-6.8.tar.gz it says that the document contains no data....on konqueror it says the connection was broken.
I checked the php.ini file and it says my max size on file uploads is 10M, which these packages are well under. Other files may upload, things like documents and smaller tar-balled stuff.
|
|
|
|
09-24-2003, 04:29 PM
|
#2
|
|
Member
Registered: Mar 2003
Posts: 126
Rep:
|
if you uploaded via a POST, see php.ini's max_post_size
I think there are a few other max's - the smallest one is your bottleneck.
grep -i max php.ini
to see what all is being limited...
|
|
|
|
09-24-2003, 07:56 PM
|
#3
|
|
Member
Registered: Nov 2002
Location: USA
Distribution: Lenny at work
Posts: 168
Original Poster
Rep:
|
Tried
i doubled the size of the memory limit and the post size limit, which were originally at 8M anyway. My test subject was only 4M. Browser still says the file contains no data.
|
|
|
|
09-25-2003, 01:55 AM
|
#4
|
|
Member
Registered: Oct 2002
Location: FDR India
Distribution: RH9, Knoppix, MEPIS
Posts: 65
Rep:
|
Re: PHP and File Uploading
Quote:
Originally posted by Tomasfuego
...On some files...it says that the document contains no data....on konqueror it says the connection was broken.
|
Does web upload works for other files, except for this particular file?
Maybe you could look at factors effecting script execution time.
regards
theN
|
|
|
|
09-25-2003, 10:11 AM
|
#5
|
|
Member
Registered: Nov 2002
Location: USA
Distribution: Lenny at work
Posts: 168
Original Poster
Rep:
|
File
it took a tar ball i had made this spring, about 2 Mb. How could I look into the execution time of it? My webserver is also my desktop and that is where I am tring to upload from.
|
|
|
|
09-30-2003, 05:03 PM
|
#6
|
|
Member
Registered: Nov 2002
Location: USA
Distribution: Lenny at work
Posts: 168
Original Poster
Rep:
|
I created a small test script....
So i try uploading a tgz file withthis size: 3,890,896 bytes.
And after a few dozen times, this shows up once in a while.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Request entity too large!
The POST method does not allow the data transmitted, or the data volume exceeds the capacity limit.
If you think this is a server error, please contact the webmaster
Error 413
~~~~~~~~~~~~~~~~~~~~~~~~~~
in my php.ini file,
; Maximum size of POST data that PHP will accept.
post_max_size = 50M
; Maximum allowed size for uploaded files.
upload_max_filesize = 40M
these are rediculously high and the files are still not being accepted!
<<<VERY FRUSTRATED>>>
|
|
|
|
08-12-2004, 09:20 AM
|
#7
|
|
LQ Newbie
Registered: Sep 2003
Distribution: RedHat 8,9,EL4,Fedora,AIX5,Slackware10
Posts: 10
Rep:
|
Have you tried using the actual size in bytes in the config directives. For example, insted of using 10M in the max_post_size and max_upload_size, use 10485760 as this is the number of bytes in 10MB. Check your memory limit in php.ini as well and use values in bytes and see how well that works.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:58 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|