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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-28-2006, 12:05 PM
|
#1
|
Member
Registered: Feb 2003
Location: Poole, Dorset, England
Distribution: Fedora Core 5
Posts: 80
Rep:
|
PHP File Uploads Failing
Hi there I am having a problem. I have a PHP File uploads script which, previously, has worked flawlessly. It stopped, saying the file was failing to upload, odd, I thought, the part of the script that copied the Temp upload file into a permanent location was failing to find the file.
So I created a dummy upload form pointing to a file with phpinfo(); in it to test and indeed the file is being uploaded. I uploaded a large file and you can see the byte value of the file increasing in /tmp, the temp file name is named something like PHP1gfn5, as soon as the upload completes and the page redirects onto the script for dealing with the upload the temp file promptly disappears.
I have tried increasing the max uploads size in php.ini with no affect and I have tried changing the upload directory with no affect, permissions are fine. So what could it be?
Thanks
|
|
|
04-28-2006, 02:09 PM
|
#2
|
Member
Registered: Feb 2003
Location: Poole, Dorset, England
Distribution: Fedora Core 5
Posts: 80
Original Poster
Rep:
|
Bumpity Bump?
|
|
|
04-28-2006, 05:37 PM
|
#3
|
Member
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384
Rep:
|
Just a wild guess, but when you say "the page redirects onto the script" it sounds like you're posting the file to page X, and then redirecting to page Y to process it. But the PHP manual says that the "file will be deleted from the temporary directory at the end of the request if it has not been moved away or renamed," so after a redirect an unprocessed file is supposed to be deleted. Then again, without seeing the code I guess I can't know if that would even apply.
|
|
|
04-28-2006, 05:39 PM
|
#4
|
Member
Registered: Feb 2003
Location: Poole, Dorset, England
Distribution: Fedora Core 5
Posts: 80
Original Poster
Rep:
|
hmm perhaps im not moving it away quickly enough. Ill have a fiddle. Cheers.
|
|
|
All times are GMT -5. The time now is 08:34 PM.
|
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
|
|