Forum Moderators: phranque

Message Too Old, No Replies

images not displaying after uploading via ftp

         

surrealillusions

2:36 pm on Apr 3, 2009 (gmt 0)

10+ Year Member



Hi all,

I've built a site for a friend, and I've done a gallery where he can upload the images and they appear on the site. This worked for a bit, then all of a sudden, he emailed me and said the images werent showing online. He has no errors on uploading, he's using the samer ftp program as I am, with the same settings (which we've double checked). I cant re-create the problem at my end as any images I upload appear fine.

I downloaded some of the images that he uploaded and they had a file size, but no image content. He says they look fine on his computer (locally), just when he uploaded them, nothing appeared.

The scripts havent changed on the site, I'm not aware of any changes the hosting company has done on the server, but then again, if I had the same problem I would suggest a server setting change. He's got plenty of space left on the site.

I cant work out what could possibly has gone wrong. I've doubled checked everything I can think of.

Anyone have any ideas?

rocknbil

3:50 pm on Apr 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



with the same settings

Absolutely sure? The most likely suspect is that images need to be uploaded in binary mode, not ASCII.

One classic example, when you set some FTP programs to "auto," they don't automatically detect type like they should. Turn off auto and set it to binary for images, ASCII for text (html, text, js, css, etc.)

In truth, binary doesn't "hurt" text files, the inverse is not true of image files/pdf/swf or any other compiled files.

surrealillusions

10:08 pm on Apr 3, 2009 (gmt 0)

10+ Year Member



Appears to be working now. So I presume the binary/ascii trick did the trick.

Thanks

:)