Title: Problem with upload.php
Last modified: August 18, 2016

---

# Problem with upload.php

 *  [hazyd](https://wordpress.org/support/users/hazyd/)
 * (@hazyd)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/problem-with-uploadphp/)
 * I am having problems witht the upload function in the 1.2 beta version. Whenever
   I try to upload an image, it appears to do it, but the image doesn’t appear in
   the folder when I look in ftp and when I try to use the link it creates, it doesn’t
   work either. I get the following error at the top of the results page:
    “Warning:
   chmod(): Permission denied in /home/hazyd/public_html/wp-admin/upload.php on 
   line 177” I have looked in the file at that line, but I can’t see what is wrong
   with it. I have tried it on a couple of installations and get the same error 
   each time. Can anyone help? Thanks, Hazel

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [mumeimagpie](https://wordpress.org/support/users/mumeimagpie/)
 * (@mumeimagpie)
 * [22 years ago](https://wordpress.org/support/topic/problem-with-uploadphp/#post-52588)
 * Hey folks,
    I am having a problem very similar to this, but no error message —
   I am perplexed and wondering if my installation of Alex King’s WP-Photo hack 
   might have smushed the ability to use the original photo functions in WP 1.0.2?
   The only difference is the lack of error message – the dialog works perfectly,
   but no file ever appears in the folder on the server. I would really appreciate
   any ideas ya’ll might have about this. Thanks in advance! :}
 *  [gm2](https://wordpress.org/support/users/gm2/)
 * (@gm2)
 * [22 years ago](https://wordpress.org/support/topic/problem-with-uploadphp/#post-52612)
 * I’m experiencing the exact same problem… Only thing is it WORKED the very first
   upload I tried and then has failed to work with the above error message every
   time since.
 *  [gm2](https://wordpress.org/support/users/gm2/)
 * (@gm2)
 * [22 years ago](https://wordpress.org/support/topic/problem-with-uploadphp/#post-52614)
 * I figured out what’s going on for me anyway! If the file size exceeds the specified
   threshold on the “Options/Miscellaneous” page, this is the cryptic message that
   results.
 *  [sportbiker](https://wordpress.org/support/users/sportbiker/)
 * (@sportbiker)
 * [22 years ago](https://wordpress.org/support/topic/problem-with-uploadphp/#post-52631)
 * same problem here…it seems to upload fine, but the file doesn’t appear in the
   target directory.
 *  [mumeimagpie](https://wordpress.org/support/users/mumeimagpie/)
 * (@mumeimagpie)
 * [22 years ago](https://wordpress.org/support/topic/problem-with-uploadphp/#post-52644)
 * So it sounds like those of us who are uploading fine but not seeing any file 
   in the target directory… are still stuck?
 *  Thread Starter [hazyd](https://wordpress.org/support/users/hazyd/)
 * (@hazyd)
 * [22 years ago](https://wordpress.org/support/topic/problem-with-uploadphp/#post-52710)
 * I solved the problem I was having simply by setting the permissions on the images
   folder to chmod 777 instead of 766. No errors any more!
    Hazel ( who should have
   read the comments in the script itself and it would have told her to do this –
   Sorry!)
 *  [threefour](https://wordpress.org/support/users/threefour/)
 * (@threefour)
 * [22 years ago](https://wordpress.org/support/topic/problem-with-uploadphp/#post-52811)
 * Besides chmod’ing my images folder to 777, I also removed some spaces that WP
   seemed to be adding to my directory path in the Options screen.
 *  [pappergank](https://wordpress.org/support/users/pappergank/)
 * (@pappergank)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/problem-with-uploadphp/#post-52849)
 * I am getting totally frustrated! I am having the same problem with upload.php.
   Everything looks fine, the page comes back to say that my file uploaded successfully,
   but when I look in the directory in which it is supposed to have uploaded, it
   isn’t there! I have tried re-uploading a fresh version of the upload.php file…
   I’ve chmoded 777 the file and the directory…I can’t figure out what is wrong 
   or what else to do. I was working fine before I installed the [WP 1.2 Photo Display Hack](http://tellitinlove.com/archives/2004/05/31/wp_photohack/)
   I installed this hack just fine without any problems on another blog that I have.
   Did anyone with this problem get it figured out?
 *  [carthik](https://wordpress.org/support/users/carthik/)
 * (@carthik)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/problem-with-uploadphp/#post-52850)
 * Please describe the problem as accurately as possible, and all the things that
   happen when you try to upload, including error messages if any, and things are
   different on this particular server, as opposed to the one it worked on.
 *  Anonymous
 * [21 years, 10 months ago](https://wordpress.org/support/topic/problem-with-uploadphp/#post-52869)
 * Confirmed – it’s clipping files larger than the upload max (Options/Misc), and
   upload.php is not gracefully handling the error. The PHP tries to chmod the uploaded
   file, it’s not there (error message), then the PHP logic passes on down to where
   it reports success even though it had just failed.
 *  [Trench](https://wordpress.org/support/users/trench/)
 * (@trench)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/problem-with-uploadphp/#post-52898)
 * I’m having the same problem. Uploads all of a sudden stoped. I changed the max
   file size to handle just about any upload but I’m still getting an error message
   of
    Warning: chmod(): Permission denied in /hsphere/local/home/trench/thetrenchcoat.
   com/wp-admin/upload.php on line 177 When I try to upload even the smallest of
   files. The image directort is chmod to 777.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Problem with upload.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 9 participants
 * Last reply from: [Trench](https://wordpress.org/support/users/trench/)
 * Last activity: [21 years, 9 months ago](https://wordpress.org/support/topic/problem-with-uploadphp/#post-52898)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
