Skip to content

Instantly share code, notes, and snippets.

@vinkla vinkla/CDN.md
Last active Apr 19, 2019

Embed
What would you like to do?
A guide on how to upload images to GitHub's CDN through issue and pull request text fields.

Upload Images to GitHub's CDN

  1. First, visit any repository on GitHub and click your way through to the issues page.

  2. Create a new issue by clicking the button New Issue. You'll now see both a title and a description field.

  3. Drag-and-drop an image on to the description field. This will start the uploading process.

  4. Copy the URL and use it in README, issues or pull requests however you like.

Example

In our example below we're uploading an image of Marty McFly.

![Uploading marty-mcfly.jpg...]()

Once GitHub is done uploading the image they will automagically add the URL to the description field.

![marty-mcfly](https://cloud.githubusercontent.com/assets/499192/8718466/e58c679c-2ba4-11e5-8e3c-3f9955b810f7.jpg)
@himelnagrana

This comment has been minimized.

Copy link

himelnagrana commented Dec 6, 2017

Awesome and WOWsome!

@roskoff

This comment has been minimized.

Copy link

roskoff commented May 9, 2018

🥇

@unmem

This comment has been minimized.

Copy link

unmem commented Jun 22, 2018

Sweet

@joernroeder

This comment has been minimized.

Copy link

joernroeder commented Oct 9, 2018

github suggests docs or hidden .github folder in repo root https://help.github.com/articles/about-readmes/

@ohld

This comment has been minimized.

Copy link

ohld commented Dec 2, 2018

WE NEED AN API FOR THAT.

@herrmanthegerman

This comment has been minimized.

Copy link

herrmanthegerman commented Jan 15, 2019

Is there an UI to manage images that a user has uploaded, e.g., so that a user can delete an image?

@prensmiskin

This comment has been minimized.

Copy link

prensmiskin commented Feb 13, 2019

Teşekkürler harika adam.

@RabaaRubaye

This comment has been minimized.

Copy link

RabaaRubaye commented Mar 18, 2019

Thank you ... I spent an hour trying to do this following a youtube tutorial and I failed ... and finally I found you and I did it in 1 minute... thank you for saving my day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.