Skip to content

Generalizes image upload in drag and drop in markdown to all files.

What does this MR do?

This MR allows uploading pretty much any file via drag and drop in the different text areas in gitlab. (issues, wiki, merge requests) Without this patch it's only possible to attach images when creating an issue. You have to create an extra comment to add other files.

History of this MR

The original pull request for this was from Neil Calabroso back in june:
https://github.com/gitlabhq/gitlabhq/pull/7078

Unfortunatly the MR was closed, because he didn't fix the tests for it. I've rebased his commit against the current master and fixed the tests. Please let me know if something else needs to be changed.

@sytses , @dzaporozhets , @jeroenvanbaarsen you guys already reviewed the original MR. Can you please take a look at this one?

Merge request reports