0

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

5
Contributors
6
Replies
7
Views
13 Years
Discussion Span
Last Post by Dsiembab
0

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.

0

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

Leo

0

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

0

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.

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.