james909 Posted July 21, 2014 Share Posted July 21, 2014 I have uploaded a png image file to my server using FTP, the file is simply '.png' but displays the broken image icon the image url is: http://www.instaworldcup.com/.png how do i get this image to display with the name '.png' as I have seen on other sites, but i am having no luck Quote Link to comment https://forums.phpfreaks.com/topic/290039-to-display-an-image-file-with-no-name/ Share on other sites More sharing options...
requinix Posted July 21, 2014 Share Posted July 21, 2014 The ".png" is alright, though you really should rename it. Downloaded, it looks like a PNG to me, which suggests it really is corrupted. Did you upload the file using binary mode? (Or how did you upload it?) Quote Link to comment https://forums.phpfreaks.com/topic/290039-to-display-an-image-file-with-no-name/#findComment-1485848 Share on other sites More sharing options...
Psycho Posted July 21, 2014 Share Posted July 21, 2014 . . . though you really should rename it. Yeah, I'm curious why you want to do this. Quote Link to comment https://forums.phpfreaks.com/topic/290039-to-display-an-image-file-with-no-name/#findComment-1485849 Share on other sites More sharing options...
james909 Posted July 21, 2014 Author Share Posted July 21, 2014 thanks for the replys, all is good now I uploaded using filezilla, and it was set to 'auto' changed it to 'binary' and it displays the image i needed to do this as the script i am using requires, i could of worked through the script changing it, but now i am all the wiser and have another string to my coding bow should now always keep filezilla in binary mode? Quote Link to comment https://forums.phpfreaks.com/topic/290039-to-display-an-image-file-with-no-name/#findComment-1485867 Share on other sites More sharing options...
requinix Posted July 21, 2014 Share Posted July 21, 2014 Auto mode should be fine. Quote Link to comment https://forums.phpfreaks.com/topic/290039-to-display-an-image-file-with-no-name/#findComment-1485872 Share on other sites More sharing options...
Richard_Grant Posted September 8, 2014 Share Posted September 8, 2014 Any included source files without a file name hurt your google ranking. (unless its a blob) Quote Link to comment https://forums.phpfreaks.com/topic/290039-to-display-an-image-file-with-no-name/#findComment-1490311 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.