cltn77 Posted February 3, 2010 Share Posted February 3, 2010 How to display the image file which filename is "img%20a1.jpg"? This happen especially for the upload image function. Can anyone help me? Thank you. <img src="img%20a1.jpg"> Link to comment https://forums.phpfreaks.com/topic/190762-could-not-open-hex-file/ Share on other sites More sharing options...
vinpkl Posted February 3, 2010 Share Posted February 3, 2010 %20 means there is blank space in image name. rename your image to name which is without blank space like "imga1.jpg" and try vineet Link to comment https://forums.phpfreaks.com/topic/190762-could-not-open-hex-file/#findComment-1005971 Share on other sites More sharing options...
cltn77 Posted February 3, 2010 Author Share Posted February 3, 2010 Thanks for reply. But how about the upload attachment or image file? we can just rename if we are users but how about other users? how to prevent if this happen? Developer view. Link to comment https://forums.phpfreaks.com/topic/190762-could-not-open-hex-file/#findComment-1005978 Share on other sites More sharing options...
haku Posted February 3, 2010 Share Posted February 3, 2010 Run a script to automatically replace spaces with underscores or whatnot when the file is uploaded. Link to comment https://forums.phpfreaks.com/topic/190762-could-not-open-hex-file/#findComment-1006112 Share on other sites More sharing options...
oni-kun Posted February 4, 2010 Share Posted February 4, 2010 Run a script to automatically replace spaces with underscores or whatnot when the file is uploaded. Yes, if you wish to retain or format it as you wish, use url_decode and what you want with it. But IMO underlines are preferred. Link to comment https://forums.phpfreaks.com/topic/190762-could-not-open-hex-file/#findComment-1006608 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.