0

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 – Anton Lukin Aug 31 '17 at 14:21
0

For the permission please read this

https://codex.wordpress.org/Changing_File_Permissions

All directories should be 755 or 750.

-1

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, privacy policy and cookie policy

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