Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website Creating HTML Content Add Image Gallery Content

David White
PLUS
David White
Courses Plus Student 2,248 Points

images not uploading?

Hi folks, thanks in advance!

Pretty self-explanatory situation here. I wanted to upload my own images, and it's in progress limbo. I tried once before, and also tried to upload the lesson image files. Neither has worked!

My images are .pdf rather than jpeg, and in the 100's of kilobytes size-wise. What am I missing?

4 Answers

If you are trying to upload them as images in just pure html then it wont work as PDFs are not image files.

There are a number of ways you can display PDFs but you will have to look into it more, but if you just using <img> tags then you will have to use such file types as jpg png gif etc

Nicklas Wiborg
Nicklas Wiborg
12,692 Points

Not sure if I'm on the right page here, but can it be because pdf isn't a image filetype?

David White
PLUS
David White
Courses Plus Student 2,248 Points

Ahh, thanks gents! I will have to look into this further. Thanks for pointing me in a direction. Now, to explore file conversion options ;)

David White
PLUS
David White
Courses Plus Student 2,248 Points

Ahh, thanks gents! I will have to look into this further. Thanks for pointing me in a direction. Now, to explore file conversion options ;)

David White
David White
Courses Plus Student 2,248 Points

Great, I got back on track with this issue. After taking Adam's clue and converting to jpg, i found that it would only work if i selected the files themselves (not the folder that contained them).