| Author |
Message |
Scott tutorialtoday.com

Joined: 24 Mar 2005 Posts: 2634 Location: Mississauga, Ontario
|
Posted: Tue Dec 25, 2007 5:15 pm Post subject: File Uploading Problems |
|
|
I am having problems with my script on another server. I am trying to just upload an image, but the form data is processed but the image is not uploaded, it is just ignored. There is no error messages from the script (PHP) and I can't find any errors in the server error log.
Is there some sort of setting that Apache could have which would disallow file uploads through HTTP? I checked phpinfo() and the setting 'file_uploads' is on. _________________ Tutorial Management Script - Version 1.4 Released
TutorialToday - Up and running, submit your tutorials!
Linux Tutorials - Coming Soon |
|
| Back to top |
|
| |
LP-SolidRaven Dictator of the Dump

Joined: 06 Jun 2004 Posts: 7193 Location: The cheese is made out of moon
|
Posted: Wed Dec 26, 2007 4:51 am Post subject: |
|
|
Try a print_r() of $_REQUEST or $_FILES if those are empty it's likely apache or a firewall is trying to block it. _________________
| Quote: |
<bart416> I just realized something
<bart416> we celebrate the fact that this piece of rock made one rotation around a glowing ball of plasma that is kept together due to its own gravity well
<njsg> HAPPY NEW YEAR
<Easter> ^^
|
|
|
| Back to top |
|
| |
Scott tutorialtoday.com

Joined: 24 Mar 2005 Posts: 2634 Location: Mississauga, Ontario
|
Posted: Wed Dec 26, 2007 4:13 pm Post subject: |
|
|
Well I found the problem and fixed it. For some reason the server wouldn't report errors. I didn't have error_reporting(0) anywhere and I tried doing (at different levels) but it doesn't report any PHP errors at all.
I figured it was a permissions problem though, I guess for this server I have to set full permissions to the directories with images being written to them.
Another question though, when people install this and I have set the required directories to have full permissions, will those directories keep them? When the upload the files, will the directories keep the permissions? _________________ Tutorial Management Script - Version 1.4 Released
TutorialToday - Up and running, submit your tutorials!
Linux Tutorials - Coming Soon |
|
| Back to top |
|
| |
LP-SolidRaven Dictator of the Dump

Joined: 06 Jun 2004 Posts: 7193 Location: The cheese is made out of moon
|
Posted: Thu Dec 27, 2007 2:52 am Post subject: |
|
|
as long as you don't chmod() them I don't see what could happen. _________________
| Quote: |
<bart416> I just realized something
<bart416> we celebrate the fact that this piece of rock made one rotation around a glowing ball of plasma that is kept together due to its own gravity well
<njsg> HAPPY NEW YEAR
<Easter> ^^
|
|
|
| Back to top |
|
| |
|
|
|