Title: Cannot find upload folder
Last modified: February 20, 2021

---

# Cannot find upload folder

 *  Resolved [ccasalicchio](https://wordpress.org/support/users/ccasalicchio/)
 * (@ccasalicchio)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cannot-find-upload-folder/)
 * I have several custom roles setup, when I create a new user with that custom 
   role, the Take-pic plugin breaks. If I manually create the folder teststudent
   in the uploads folder, then the plugin works. Is it related to permissions?
 * This is the error:
 * Warning: scandir(/home/customer/www/ucedaschool.net/public_html/wp-content/uploads/
   teststudent): failed to open dir: No such file or directory in /home/customer/
   www/ucedaschool.net/public_html/wp-content/plugins/take-pic/TakePic.php on line
   497
 * Warning: scandir(): (errno 2): No such file or directory in /home/customer/www/
   ucedaschool.net/public_html/wp-content/plugins/take-pic/TakePic.php on line 497
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/customer/www/ucedaschool.net/public_html/wp-content/plugins/take-pic/
   TakePic.php:497) in /home/customer/www/ucedaschool.net/public_html/wp-includes/
   pluggable.php on line 1296
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcannot-find-upload-folder%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [ccasalicchio](https://wordpress.org/support/users/ccasalicchio/)
 * (@ccasalicchio)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cannot-find-upload-folder/#post-14078673)
 * Version 2.1.0
 *  Plugin Author [UjW0L](https://wordpress.org/support/users/ujw0l/)
 * (@ujw0l)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cannot-find-upload-folder/#post-14093531)
 * I believe sever is not letting plugin create folder programatically. It is supposed
   to take username of user and create folder with that name where all of the user’s
   images are uploaded. folders are in same directory where uploads folder is.
 *  Thread Starter [ccasalicchio](https://wordpress.org/support/users/ccasalicchio/)
 * (@ccasalicchio)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cannot-find-upload-folder/#post-14096241)
 * How do I fix it? Do I need to change the permissions for the folder? What should
   I change it to? 777?
 *  Thread Starter [ccasalicchio](https://wordpress.org/support/users/ccasalicchio/)
 * (@ccasalicchio)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cannot-find-upload-folder/#post-14096333)
 * I’ve set the permissions for the uploads folder (recursively) to 775 and it still
   returned this error
 * <b>Warning</b>: scandir(/home/customer/www/ucedaschool.net/public_html/wp-content/
   uploads/teststudent): failed to open dir: No such file or directory in <b>/home/
   customer/www/ucedaschool.net/public_html/wp-content/plugins/take-pic/TakePic.
   php</b> on line <b>497</b><br>
    <br> <b>Warning</b>: scandir(): (errno 2): No
   such file or directory in <b>/home/customer/www/ucedaschool.net/public_html/wp-
   content/plugins/take-pic/TakePic.php</b> on line <b>497</b><br>
 *  Plugin Author [UjW0L](https://wordpress.org/support/users/ujw0l/)
 * (@ujw0l)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cannot-find-upload-folder/#post-14108849)
 * try by setting permission for read and write i think its 777 , i am not sure 
   though, never had such problem before,i think it has to do with what kind of 
   server you are using
 *  Plugin Author [UjW0L](https://wordpress.org/support/users/ujw0l/)
 * (@ujw0l)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/cannot-find-upload-folder/#post-14215345)
 * resolved

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

The topic ‘Cannot find upload folder’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/take-pic_fbdbd8.svg)
 * [Take Pic](https://wordpress.org/plugins/take-pic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/take-pic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/take-pic/)
 * [Active Topics](https://wordpress.org/support/plugin/take-pic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/take-pic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/take-pic/reviews/)

## Tags

 * [custom role](https://wordpress.org/support/topic-tag/custom-role/)
 * [upload](https://wordpress.org/support/topic-tag/upload/)
 * [user](https://wordpress.org/support/topic-tag/user/)

 * 6 replies
 * 2 participants
 * Last reply from: [UjW0L](https://wordpress.org/support/users/ujw0l/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/cannot-find-upload-folder/#post-14215345)
 * Status: resolved