Question

I cannot upload new images in my website folder but i can still view the old images.

Hi,

I have my website set up at /var/www/html/public with the images being stored in the /var/www/html/public/images folder. I have run many chown and chmod permissions on this images folder as found online but none of the new images are being able to be viewed even though all permissions are already at 777 and the data owner is www-data.

I can view my old images just fine via domain.com/images/old-image.jpg but domain.com/images/new-image.jpg throws up a blank and when i reference it in my website that image simply does not occur.

This does seem to be a mysterious issue.

Using digitalocean with LAMP installed.

Using Filezilla to transfer my files.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @stanwinsiow,

I’m glad to hear you managed to find a solution to the problem.

Regarding your question, the only thing you can do to track changes is using git/gitlab/svn. Personally, I’ll recommend git as git comes with your droplet (if I’m not mistaken!). Here is an article which you can further read on - Article

Regards, Kalin

Hi @stanwinsiow,

When you make other changes does your website reflect them?

It sounds to me like you are updating a website that’s not loading from the proper place. Make sure to check the DNS of your domain and see the A record.

Kind regards, Kalin