Solved

Images not displaying

Posted on 2006-07-11
4
205 Views
Last Modified: 2010-04-09
I have built a dynamic appliaction that allows my client to upload their own photos. They claim that the images were displaying fine up until yesterday, which I find hard to believe due to the way they named the files. I jsut need to verify that the file names is what is causing then images not to display. Their naming convention is "Gurevitch MD, Earl.JPG." Obviously the spaces are not good, but I believe that the comma is what is causing the breakdown. How do I excplain this to the client? In my 7 years in the business, I have never had anyone put commas in the file names.  
0
Comment
Question by:semerj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
NAORC earned 250 total points
ID: 17082236
I would recommend telling them that:

Comma's are generally used as a way of seperating items in a list.  therefore if they upload a file called "Gurevitch MD, Earl.JPG" then some or most browsers will look for a file called "Gurevitch MD" (note no extension) and then another file called "Earl.jpg".

I would then go on to explain that if this is a web site, that having spaces in file names is not a good thing.  i would recommend something Like "GurevitchMdEarl.jpg" as a file name.

%2C is the hex character for a comma (in the same way that %20 is a space) and if he must use comma's in a file name, then do it that way:

"Gurevitch%20MD%2C%20Earl.jpg"

I would also stress to him/her that there is no way around this (there is, but it would involve tonnes of coding and reprogramming on your site) and that there is nothing that can be done to overcome this error unless he changes the way that he types file names

Hope this helps
Ben
0
 

Author Comment

by:semerj
ID: 17082689
You the man. Thank you.
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 17082901
semerj,

I think you got great advise from Naorc and it should answer your question.  The only thing I would add would be if the client feels that they must make the file name more readable then instruct him to use an underscore (_).  I would recommend that he NEVER use a space and even stay away from symbols, like the comma, that need to be substituted with their hex value.

This is the universally accepted practice and even if you were to adapt for him then he would just have issues if he used his images or site somewhere else.

b0lsc0tt
0
 
LVL 5

Expert Comment

by:NAORC
ID: 17083455
>>>You the man. Thank you.
>>>I think you got great advise from Naorc

Why thankyou kind sirs *takes a bow*

like b0lsc0tt says - modifying an entire website just for one stubborn user is insanity.

Anyways.  was there any more info you needed?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question