summaryrefslogtreecommitdiffstats
path: root/app/controllers/attachments_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix RuboCop offense Rails/HttpStatus (#39889).Go MAEDA2024-05-181-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22837 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-261-1/+1
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates Rails to 7.1.2 (#36320).Marius Balteanu2023-11-271-1/+1
| | | | | | Patch by Takashi Kato. git-svn-id: https://svn.redmine.org/redmine/trunk@22488 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set a strict CSP policy for downloaded attachments, thumbnails, and raw ↵Go MAEDA2023-09-181-0/+5
| | | | | | | | | repository files(#38417). Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22295 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Always serve thumbnails with disposition: attachment (#38417).Go MAEDA2023-09-181-1/+1
| | | | | | | Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22294 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Redirect to container URL in case of error in attachments#download_all (#37880).Go MAEDA2022-11-031-1/+18
| | | | | | | Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21948 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Simplify AttachmentsController#find_container (#37772).Go MAEDA2022-10-201-12/+3
| | | | | | | Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21907 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove extra call of Attachment#thumbnailable? in ↵Go MAEDA2022-08-301-1/+1
| | | | | | | | | AttachmentsController#thumbnail (#37599). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@21790 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Download all attachments in a journal (#35462).Go MAEDA2021-11-221-1/+1
| | | | | | | Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@21292 e93f8b46-1217-0410-a6f0-8f06a7374b81
* File upload fails when run with uWSGI (#35715).Go MAEDA2021-08-141-1/+11
| | | | | | | Contributed by Pavel Rosický and Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@21173 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Uploading a big file fails with NoMemoryError (#33752).Go MAEDA2021-05-111-1/+1
| | | | | | | Patch by Karel Pičman and Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20993 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of AttachmentsControllerToshi MARUYAMA2020-11-141-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20368 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "do end" instead of {} at AttachmentsControllerToshi MARUYAMA2020-11-061-6/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20278 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add empty line after guard clause to AttachmentsControllerToshi MARUYAMA2020-11-041-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20253 e93f8b46-1217-0410-a6f0-8f06a7374b81
* avoid using rescue in its modifier form at AttachmentsController#find_containerToshi MARUYAMA2020-07-081-1/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19863 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix that bulk download raises Errno::EACCES on Windows (#7056).Go MAEDA2020-04-111-10/+10
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19688 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace File#readable? with Attachment#readable? (#7056).Go MAEDA2020-04-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19635 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Display bulk_download_max_size in human-readable representation (#7056).Go MAEDA2020-03-231-1/+3
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19609 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Download all attachments at once (#7056).Go MAEDA2020-03-211-2/+32
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19601 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r19569 (#33071).Go MAEDA2020-03-141-2/+0
| | | | | | | 404 error after deleting an attachment. git-svn-id: http://svn.redmine.org/redmine/trunk@19579 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Require sudo mode for actions to delete contents (#33071).Go MAEDA2020-03-101-0/+2
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19569 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "Couldn't find template for digesting" error in the log when sending an ↵Go MAEDA2019-12-121-2/+2
| | | | | | | | | attachment or thumbnail (#20277). Patch by Olivier Houdas. git-svn-id: http://svn.redmine.org/redmine/trunk@19365 e93f8b46-1217-0410-a6f0-8f06a7374b81
* cleanup: rubocop: fix Layout/AlignArguments in ↵Toshi MARUYAMA2019-11-081-2/+3
| | | | | | app/controllers/attachments_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18941 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove trailing whitespaces from app (#31506).Go MAEDA2019-06-061-1/+1
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18230 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Render PDF thumbnail using ImageMagick/GhostScript (#22481).Go MAEDA2019-05-121-4/+12
| | | | | | | Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@18158 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix that Content-Type header field is empty when sending a file of unknown ↵Go MAEDA2019-04-301-1/+1
| | | | | | | | | type (#31275). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18098 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support frozen_string_literal in app/**/*.rb (#26561).Go MAEDA2019-03-171-1/+1
| | | | | | | Contributed by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17987 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a link to container on attachments edit form.Jean-Philippe Lang2018-12-121-3/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17722 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Attachments prev/next navigation (#29395).Go MAEDA2018-10-041-0/+8
| | | | | | | Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@17567 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Highlight menu item when viewing an attachment (#25988).Jean-Philippe Lang2017-06-101-0/+16
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16652 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't check that param is a Hash.Jean-Philippe Lang2017-06-031-5/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16601 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use #skip_after_action instead of #skip_after_filter.Jean-Philippe Lang2017-06-011-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16589 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Always send images user-uploaded images with Content-Disposition: attachment ↵Jean-Philippe Lang2017-01-291-1/+1
| | | | | | | | (#24199). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@16285 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add support for updating attachments over REST API (#22356).Jean-Philippe Lang2016-10-011-1/+21
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15861 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rename AttachmentsController#edit and #update to #edit_all and #update_all ↵Jean-Philippe Lang2016-10-011-5/+7
| | | | | | (#22356). git-svn-id: http://svn.redmine.org/redmine/trunk@15860 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow to download javascript attachments again (#23376).Jean-Philippe Lang2016-10-011-0/+4
| | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@15856 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use head instead of render :nothing => true.Jean-Philippe Lang2016-07-171-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15687 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use .before_action instead of .before_filter.Jean-Philippe Lang2016-07-141-5/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15655 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't force download of PDF (#22483).Jean-Philippe Lang2016-05-091-1/+9
| | | | | | Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@15409 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Show attachment view even is no preview is available (#22482).Jean-Philippe Lang2016-05-081-1/+1
| | | | | | Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@15398 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support for deleting attachments via API (#14828).Jean-Philippe Lang2016-04-121-1/+2
| | | | | | Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@15332 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add inline image preview/display for attachments and repository entries ↵Jean-Philippe Lang2016-04-111-0/+2
| | | | | | | | (#22058). Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15324 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix that AttachmentsController#show don't close the file after reading.Jean-Philippe Lang2016-04-031-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15289 e93f8b46-1217-0410-a6f0-8f06a7374b81