-
- Downloads
Generalize the image upload in markdown
This commit generalizes the image upload via drag and drop so it supports all files. It also adds access control for these files.
Showing
- CHANGELOG 1 addition, 0 deletionsCHANGELOG
- app/assets/javascripts/dropzone_input.js.coffee 13 additions, 8 deletionsapp/assets/javascripts/dropzone_input.js.coffee
- app/controllers/files_controller.rb 27 additions, 2 deletionsapp/controllers/files_controller.rb
- app/controllers/projects_controller.rb 7 additions, 11 deletionsapp/controllers/projects_controller.rb
- app/services/projects/file_service.rb 55 additions, 0 deletionsapp/services/projects/file_service.rb
- app/uploaders/file_uploader.rb 18 additions, 1 deletionapp/uploaders/file_uploader.rb
- app/views/projects/_issuable_form.html.haml 1 addition, 1 deletionapp/views/projects/_issuable_form.html.haml
- app/views/projects/issues/_form.html.haml 1 addition, 1 deletionapp/views/projects/issues/_form.html.haml
- app/views/projects/merge_requests/_form.html.haml 1 addition, 1 deletionapp/views/projects/merge_requests/_form.html.haml
- app/views/projects/merge_requests/_new_submit.html.haml 3 additions, 2 deletionsapp/views/projects/merge_requests/_new_submit.html.haml
- app/views/projects/milestones/_form.html.haml 2 additions, 2 deletionsapp/views/projects/milestones/_form.html.haml
- app/views/projects/notes/_edit_form.html.haml 1 addition, 1 deletionapp/views/projects/notes/_edit_form.html.haml
- app/views/projects/notes/_form.html.haml 3 additions, 3 deletionsapp/views/projects/notes/_form.html.haml
- app/views/projects/wikis/_form.html.haml 3 additions, 2 deletionsapp/views/projects/wikis/_form.html.haml
- config/routes.rb 3 additions, 2 deletionsconfig/routes.rb
- spec/controllers/projects_controller_spec.rb 21 additions, 15 deletionsspec/controllers/projects_controller_spec.rb
- spec/services/projects/file_service_spec.rb 81 additions, 0 deletionsspec/services/projects/file_service_spec.rb
- spec/services/projects/image_service_spec.rb 0 additions, 62 deletionsspec/services/projects/image_service_spec.rb
Loading
Please register or sign in to comment