Title: Upload Error
Last modified: August 18, 2016

---

# Upload Error

 *  [Tusk](https://wordpress.org/support/users/tusk/)
 * (@tusk)
 * [21 years ago](https://wordpress.org/support/topic/upload-error-2/)
 * > Warning: copy(/home/tusk/public_html/wp-content/uploads/babyowned.jpg): failed
   > to open stream: Permission denied in /home/tusk/public_html/wp-admin/upload.
   > php on line 170
   >  Couldn’t upload your file to /home/tusk/public_html/wp-content/
   > uploads/babyowned.jpg.
 * How can I stop this? the folder settings are set to 776.

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years ago](https://wordpress.org/support/topic/upload-error-2/#post-187772)
 * Folder setting could be different ?
    Try 766, 755 ? maybe only 777 will work.
 *  Thread Starter [Tusk](https://wordpress.org/support/users/tusk/)
 * (@tusk)
 * [21 years ago](https://wordpress.org/support/topic/upload-error-2/#post-187918)
 * Nope, still nothing. It seems to be an actual error in the code.
 *  Thread Starter [Tusk](https://wordpress.org/support/users/tusk/)
 * (@tusk)
 * [21 years ago](https://wordpress.org/support/topic/upload-error-2/#post-188288)
 * Sorry, but this is really important to me so I must bump.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years ago](https://wordpress.org/support/topic/upload-error-2/#post-188289)
 * Set both /wp-content/ and /uploads/ to 777 and try again.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years ago](https://wordpress.org/support/topic/upload-error-2/#post-188290)
 * Does your server error log reveal any problems ?
 *  [Brigitte](https://wordpress.org/support/users/brigitte/)
 * (@brigitte)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/upload-error-2/#post-188459)
 * When I try uploading something I get this error:
 * Warning: copy(): open_basedir restriction in effect. File(/home/dakishi/public_html/
   log/wp-content/images/rail_info2.gif) is not within the allowed path(s): (/home/
   dakishi/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home2/dakishi/public_html/
   log/wp-admin/upload.php on line 170
 * Warning: copy(/home/dakishi/public_html/log/wp-content/images/rail_info2.gif):
   failed to open stream: Operation not permitted in /home2/dakishi/public_html/
   log/wp-admin/upload.php on line 170
    Couldn’t upload your file to /home/dakishi/
   public_html/log/wp-content/images/rail_info2.gif.
 * does anyone know what the problem is? Sorry if it’s something really simple but
   I’m confused. Thanks.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/upload-error-2/#post-188460)
 * “open_basedir restriction in effect.”
    that’s a hosting issue. Copy the error
   message to them, tell them really clearly that it has nothing to do with WP –
   as they will blame WP first – and ask them for alternatives.
 * Who is your host ?
 *  [Brigitte](https://wordpress.org/support/users/brigitte/)
 * (@brigitte)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/upload-error-2/#post-188461)
 * My host is Surpasshosting
 *  [mpm](https://wordpress.org/support/users/mpm/)
 * (@mpm)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/upload-error-2/#post-188478)
 * /home/tusk/public_html/wp-admin/upload.php on line 170
 * do I chmod the folder or the file – or both?

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

The topic ‘Upload Error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 5 participants
 * Last reply from: [mpm](https://wordpress.org/support/users/mpm/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/upload-error-2/#post-188478)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
