Skip to main content
williamm86517933
Known Participant
April 27, 2017
Answered

Images rejected by host [was: dreamweaver]

  • April 27, 2017
  • 5 replies
  • 805 views

Hi

Have a couple of question... I was told by a host company that I cant upload images with the following extension...

img_1.jpg and img-1.jpg

Is this true? and what is the right way of saving images and code on a web page? or what should I stay away from.. thanks a lot

This topic has been closed for replies.
Correct answer Nancy OShea

I don't know why you can't. 

Any image file you use should be able to contain letters, numbers, dashes or underscores + a proper file extension (.gif, .jpg, .png, .svg) and no spaces or special characters.

filename.jpg

file-name2.jpg

file_name3.jpg

What you posted is perfectly acceptable on a reputable hosting platform (Apache/Linux or Windows).  If it's not, then you should find a new web host.

Nancy

5 replies

williamm86517933
Known Participant
April 28, 2017

sorry not extension what I mean is that I can't add underscore or space in any of my code for example...

img_1.jpg

img-1.jpg

img 1.jpeg

thanks everyone

Rob Hecker2
Legend
April 28, 2017

Spaces are not good to use in file names, but I'm surprised the host doesn't allow underscore. I would recommend not using capital letters as well.

BenPleysier
Community Expert
Community Expert
April 28, 2017

Could it be that img-1 and img_1 is rejected rather than the .jpg extension?

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Rob Hecker2
Legend
April 28, 2017

what should I stay away from?

Tobacco, fake news, and religious cults.

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
April 28, 2017

I don't know why you can't. 

Any image file you use should be able to contain letters, numbers, dashes or underscores + a proper file extension (.gif, .jpg, .png, .svg) and no spaces or special characters.

filename.jpg

file-name2.jpg

file_name3.jpg

What you posted is perfectly acceptable on a reputable hosting platform (Apache/Linux or Windows).  If it's not, then you should find a new web host.

Nancy

Nancy O'Shea— Product User & Community Expert
Rob Hecker2
Legend
April 28, 2017

Both of your examples have the same extension - jpg.

This is the most common image file extension in the world.