943,487 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 3504
  • PHP RSS
Jun 14th, 2004
0

Issues w/ file uploads in PHP

Expand Post »
I have a client who's attempting to support a file upload script on several servers. All appear to have PHP configured with file_upload turned on, however *some* act as if it's not. This is an area I've not got a lot of experience in (yet) ... Any hints on what other configuration or environmental differences might cause file uploads not to work for a specific server/instance of PHP?

Many thanks,

Leo
Similar Threads
Leo
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Leo is offline Offline
5 posts
since Jun 2004
Jun 15th, 2004
0

Re: Issues w/ file uploads in PHP

The directory you're uploading to has to have the appropriate security attributes. The most important is the -w attribute. A directory that I use, in one app I created, has the following: drwxrwxr-x - it's used for uploading stuff to.
Team Colleague
Reputation Points: 262
Solved Threads: 18
a.k.a inscissor
samaru is offline Offline
1,227 posts
since Feb 2002
Jun 15th, 2004
0

Re: Issues w/ file uploads in PHP

Thank you ... I've passed that along and we'll see if that's perhaps another part of our puzzle.

Leo
Leo
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Leo is offline Offline
5 posts
since Jun 2004
Jun 15th, 2004
0

Re: Issues w/ file uploads in PHP

You also may want to check your MAX_FILE_UPLOAD size in your php.ini file.
Reputation Points: 16
Solved Threads: 2
Junior Poster
Arizona Web is offline Offline
118 posts
since Jun 2004
Dec 9th, 2007
0

Re: Issues w/ file uploads in PHP

depending on your host you might have to copy and paste the php.ini file into the folder where you upload script is being executed of course with the before mentioned
Reputation Points: 18
Solved Threads: 2
Junior Poster
Dsiembab is offline Offline
156 posts
since Mar 2007
Dec 9th, 2007
0

Re: Issues w/ file uploads in PHP

Yeh I had this problem, it's most likely as Arizona Web said with the MAX_FILE_UPLOAD in the php.ini since you said some files do upload.

I think by default it is configured to accept 2MB or less.
Featured Poster
Reputation Points: 975
Solved Threads: 140
Posting Virtuoso
scru is offline Offline
1,624 posts
since Feb 2007
Dec 9th, 2007
0

Re: Issues w/ file uploads in PHP

Click to Expand / Collapse  Quote originally posted by Dsiembab ...
depending on your host you might have to copy and paste the php.ini file into the folder where you upload script is being executed of course with the before mentioned
I meant change the php.ini MAX_FILE_SIZE for uploads in the copy. You can do this in any folder, depending on your hosting.
Reputation Points: 18
Solved Threads: 2
Junior Poster
Dsiembab is offline Offline
156 posts
since Mar 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: interagtion between my gallery and phpbb
Next Thread in PHP Forum Timeline: Security issues





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC