What is causing my images to corrupt during FTP transfer to Go Daddy server?

484 views Asked by At

I'm having a host of problems with migrating my site to my Go Daddy shared hosting server.

The issue I have is that none of my images show up. They do not show up as broken links but there is no image displayed. I am outputting the images as links, and the link area is appropriate to the image, but again no image is displayed. I've moved the codebase to two different development machines (win and linux) and I have no issues in setting them up. I believe that this is an ftp issue. As this is a shared hosting account I don't have access to anything besides ftp (no sftp).

I can confirm that I have all appropriate permissions and so on. I am following normal migration protocol, namely: 1) set up blank site, 2) install my dbase, 3) copy sites folder to server, 4) change settings.php.

I have even tried to ftp using binary explicitly, but again no luck. It is also corrupting my fonts as well, but the images are more imperative.

Any ideas? I don't want to manually upload all my images.

For reference, they are in a 744 folder, and the images have 644 permissions.

UPDATE: So, I uploaded one of the images manually into my content through the drupal interface. It was placed in the same folder as the other images with 664 permissions. I tested changing the other images' permissions, with no luck. Which seems point back to an image corruption issue, which I assume has to happen in transit for lack of a better explanation.

UPDATE 2: I tried to run a database update, and there the Drupal Drop logo is a broken link. This suggests that the files are getting corrupted on the server. This however, is a file that should have just come with the drupal install, so now I am at a total loss.

3

There are 3 answers

0
nizz0k On BEST ANSWER

So, ftp does in fact corrupt image files sometimes, especially when you're transferring large numbers of files. The easiest way to work around this is to archive the files that you want to ftp and transfer the archive.

3
cosmycx On

Look into your code vs. the image files names and extensions, hosting in probably unix/linux and the file system is case sensitive; if this does not work try to look into file paths backslashes vs. forward slashes. If Go Daddy has a file manager (I'm sure it does), access your images from the file manager and check: they have right case sensitive names and paths and tagged accordingly as images. hope it helps

1
toing_toing On

I don't think this is an ftp issue. To make sure, check whether all the images files have been uploaded to the server. Afterwards, check the file permissions for the image folder/s. Set it to 775 or 777. If this doesn't solve the issue. just upload a sample image to separate folder and try check it's links (forward and back slashes, case etc) till you can get that image shown properly. Afterwards, apply it to the other folder/s.