Skip to content

Instantly share code, notes, and snippets.

@vinkla vinkla/CDN.md
Last active Jun 16, 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 of uploading image to GitHub's CDN

@himelnagrana

This comment has been minimized.

Copy link

commented Dec 6, 2017

Awesome and WOWsome!

@roskoff

This comment has been minimized.

Copy link

commented May 9, 2018

🥇

@unmem

This comment has been minimized.

Copy link

commented Jun 22, 2018

Sweet

@joernroeder

This comment has been minimized.

Copy link

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

commented Dec 2, 2018

WE NEED AN API FOR THAT.

@herrmanthegerman

This comment has been minimized.

Copy link

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

commented Feb 13, 2019

Teşekkürler harika adam.

@RabaaRubaye

This comment has been minimized.

Copy link

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.

@PAESSoon

This comment has been minimized.

Copy link

commented Apr 24, 2019

Awesome! Thank you!!

@MubinSayed

This comment has been minimized.

Copy link

commented May 6, 2019

Thanks

@PotLid

This comment has been minimized.

Copy link

commented May 24, 2019

This is by far the most intuitive and easy. Thanks mate!

@astout

This comment has been minimized.

Copy link

commented May 28, 2019

Does this suddenly no longer work for others? I drag and drop and chrome just opens the local file. Safari behavior just pastes in the path to the local file. On macOS 10.14.5.

Edit: Interesting...it works in comments, but no longer in Wiki.

@PotLid

This comment has been minimized.

Copy link

commented May 29, 2019

@astout

Same on my safari Mojave 10.14.5.

Seems only works on few cases.

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.