Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to attach file to a github issue?

You upload it somewhere and add the link in a comment. GitHub's Issues is rather primitive and doesn't allow attaching files.

Update: You can post images to GitHub issues now. The easiest way is to copy the image (right click, Copy image) and then paste it into the text box where you describe the issue.

OR

Just drag and drop


As of December 7, 2012, you can attach images by drag/drop or use a file chooser. See https://github.com/blog/1347-issue-attachments for more details.


To attach a file to an issue or pull request conversation, drag and drop it into the comment box.

The maximum size for files is 25MB and the maximum size for images is 10MB.

Upload Image


ZenHub.io Chrome plug-in will enable you to add any type of file to a github issue. It's stored on ZenHub's AWS server instead of github.com. From their website...

GitHub only allows you to upload image files. ZenHub adds the ability to upload any type of file into issues and comments, transferring securely to Amazon S3. With this you can really take your workflow to the next level; try using GitHub for everything! Centralized collaboration and transparency are awesome.

Update:

As of 11/03/2015 you can now upload these types of files to github without any extension or plug-in: PNG, GIF, JPG, DOCX, PPTX, XLSX, TXT, or PDF


As an illustration of the previous answers, see this comment:

I create a repository called catfood http://github.com/blueheadpublishing/catfood/ where I keep misc stuff (like screenshots and other attachments).
That way I can reference them in issues.

See https://github.com/blueheadpublishing/bookshop/issues/10

Some images showing the types of layout templates we want to have generated by templates:

  • Example One - Three Percentage Columns
  • Example Two - Two Percentage Columns Left
  • Example Three - Two Percentage Columns Right

Back in 2009, GitHub expressed the intent to add attachment to issues.

Attachments are something we'd like to add.

That topic wasn't raised since in the GitHub group though...