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"> Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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.