cis-ds / Discussion

Public discussion
10 stars 15 forks source link

Getting a 404 page not found instead of picture. #162

Closed margotbarranco closed 2 years ago

margotbarranco commented 3 years ago

I included a picture in homework 01 and it worked fine when I was looking at the preview in R Studio. However, I just checked my work after having submitted it on GitHub and now the picture has been replaced by a link that leads to a 404 page not found. The command I used for the picture is

![text] (photo.png)

with photo.npg uploaded in the "files" in the R Studio Server (same file where the README.md is saved).

fdicera commented 3 years ago

Did you commit and push the photo file as well? If not, your photo.png file doesn't exist in your repository on GitHub yet (even though it's there in R Studio), so you'll need to commit and push it first in order to see the image on GitHub.

margotbarranco commented 3 years ago

Okay I didn't think of that, I think it worked now! Thank you so much! Could you tell me if you can see it too ? I just want to make sure!

fdicera commented 3 years ago

I can see it!

StephenYang866 commented 3 years ago

I committed and pushed my image file and it shows also in my repository on Github. But rather than the image I can only see my code like ![Big Data](image/big data.jpg) on Github. Whats wrong?

bensoltoff commented 3 years ago

You have a space in the file name. Rename the file using a hyphen then change the readme to the new filename. We'll talk about the importance of file naming and styling in week 5

StephenYang866 commented 3 years ago

Thanks Professor, the problem is solved!