Images always break in File Manager from local to remote

Permalink
Any idea why? Sometimes I can fix it by clearing cache, most of the time I can not. It's a real pain in the arse to build a website locally, upload it and then have to fix every image on every page.

So, what am I doing wrong? I'm using MAMP and everything else seems to work fine when I upload the files and import the database to a remote server.

I've tried to rescan the images and I just get this message (attached):

1 Attachment

 
hutman replied on at Permalink Reply
hutman
If you click on the broken image icon and open the Properties does the URL to File have the correct URL in it?

If it does not can you check and see if you have a BASE_URL defined in your /config/site.php that might be causing issues?

If it does have the correct URL can you check in the actual files via FTP and see if the image exists on the server where it should?
zoinks replied on at Permalink Reply
I figured out what it was. For some reason, many of the files in the files directory do not copy over remotely on some hosting servers. No idea why because there is no warning about permissions or anything. I solved the problem this last time by deleting the old remote files directory and then re-uploading the files directory from my local set up. That's all and it worked.