New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add feature to be able to upload a file to an issue #6467
Conversation
@tudorpavel Thanks! Can you please add tests for this? |
@dosire Sure. Spinach (feature) tests? |
@tudorpavel Yes please |
@tudorpavel Thanks! Was missing this feature :D |
@jvanbaarsen Don't mention it! Indeed, it was about time... 😁 @dosire Feature tests added. |
@randx Can you review this? |
I think it makes sense to implement multiple image attachment. Now you already can attach single image to comment. |
Also I think it should support dropping an image on the page to upload, a la GitHub or Imgur. |
+1, would love to have this. A single attachment seems a good start to me — multiple attachments can be added later. |
@randx Multiple attachments would be quite more complex. I thought about it and decided I should do just one attachment first. Also, a UX has to be decided upon:
|
@tudorpavel I see. But implementing single attachment and then implementing multiple attachments is rewriting same code twice. Thats why I consider doing multiple attachments at once. I'm for drag&drop too |
@randx So the GitHub style of adding images inline with the help of Markdown seems ok, right? I'm not sure how or if I should model multiple attachments with CarrierWave. |
@tudorpavel yeap. Github style is ok |
why not allowing it like on github ... drag'n'drop or clipboard paste ... it's the easiest way for endusers |
I agree that drag/drop upload would make more sense than attachements. Drag/drop would put all the images of a project in an I hacked a proof-of-concept of drag/drop upload, using the jQuery-File-Upload plugin and some trivial modifications to the Ruby code: it works quite well, and the mental model for this seems elegant enough to me (even if my implementation is messy). If some people are interested in this direction, I can cleanup the code and submit it. |
i would like to have that - please also add clipboard uploading ... |
imho there is no need to save these images structured in directories, but you can 😄 |
I really hope this makes it into 6.8 |
This merge request has been closed because a request for more information has not been reacted to for more than 2 weeks. If you respond and conform to the merge request guidelines in our contributing guidelines we will reopen this merge request. /cc @Razer6 |
@tudorpavel Please let us know if you have time to work on this and would like to reopen it. |
please reopen, this is really a killer feature i do really miss for now. |
@kaystrobach We will reopen if someone has time to work on this. |
Please reopen, we would like to work on this feature. Specifically, we're going to do the following:
Hoping for feedback. |
@erbunao pleas also consider the clipboard uploading. I would prefer a more general upload solution for all textareas supporting markdown 👍 this way you just need a uploadhandler + the JS across all sites |
@erbunao Thanks for your interest in this feature, i'll re-open this one for now. But it will be closed if there is no activity in the next 14 days. |
@erbunao Awesome that you will work on this. Please send separate merge requests if possible. Multiple images to the description section of an issue => Please also allow multiple images attached to comments. |
We need some suggestions where to upload these images. We're proposing to create an |
@erbunao sounds great, |
@erbunao Awesome! |
Since this feature has been merged via #7011 i'll close this MR. |
Thanks @jvanbaarsen |
The idea of this feature is to have the possibility of uploading a file to an issue, not just to comments. This implementation works just for the simpler case of only one file per issue.
Feature requests:
User Interface
The implementation consists of:
Add/Edit Form
Before:
After, without any attachment:
After, with image attachment:
After, with non-image file attachment:
Show page
Before:
After, with image attachment:
After, with non-image file attachment:
Implementation
:delete_attachment
routeFilesController#download
to work with any model