--- Bob Sawyer <[EMAIL PROTECTED]> wrote:

> --- James Keeline <[EMAIL PROTECTED]> wrote:
> > When performing file uploads, an important and often overlooked
> > characteristic
> > is the structure of the <form> tag.  You must have
> > enctype='multipart/form-data' in the tag along with the method='post'
> > and
> > action properties.
> 
> Yep, I have the multipart/form-data enctype. The file is being uploaded
> to the temp directory -- it's just not being copied from the temp to
> the destination directory.

I've had problems where some part of this is misspelled and it gets ignored. 
File uploads also will only work if the method is POST.

> > The other very common problem is that your web server (Apache?)
> > running as a
> > non-priveleged user (apache or nobody) does not have write permission
> > for the
> > destination directory.
> 
> I'm starting to suspect that is the case. 
> 
> Thanks,
> -Bob

If you don't have command-line access to inspect the permission status for the
directory, you may be able to do so in your FTP/SFTP/SCP client program.  Many
will allow you to adjust the file or directory permissions.

Normally PHP will throw and error or warning if there is a write permission
problem.  Make sure that you have a reasonable error_reporting(E_ALL ^
E_NOTICE) and that you are not hiding the output of a function with an @ symbol
during development.

>From within PHP you can use the is_writable() function to see if the web server
user has permission to write to the directory (http://www.php.net/is_writable).

James
_____

James D. Keeline
http://www.Keeline.com  http://www.Keeline.com/articles
http://Stratemeyer.org  http://www.Keeline.com/TSCollection

http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Summer Semester Begins Jun 20 -- New Classes Start Every Few Weeks.


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hu3rivt/M=362131.6882499.7825260.1510227/D=groups/S=1705005703:TM/Y=YAHOO/EXP=1123000046/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to