I am developing a plugin. This plugin creates a folder in wordpress uploads folder to store image files. Though the image file is getting stored in wp-content/uploads/my-plugin-folder/59a804d376a83.jpg like this it does not display in the pages. I store image url in database and retrieve it page in url like http://mywebsite/wp-content/uploads/my-plugin-folder/59a804d376a83.jpg. Its working on local wamp server but not on live website. I changed the permission of my-plugin-folder to 745 (Read permission). If i past the image url I get 404 page not found error on wordpress website.

  • What web server do you use on prod server? Show us the config or htaccess Commented Aug 31, 2017 at 14:21

2 Answers 2


For the permission please read this


All directories should be 755 or 750.


I fixed this by changing the permission of uploads folder to 745 and its working.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.