summaryrefslogtreecommitdiffstats
path: root/app/controllers/attachments_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merged r19365 from trunk to 3.4-stable (#20277).Go MAEDA2019-12-121-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@19368 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
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Send a better content type than application/octet-stream (#19131).Jean-Philippe Lang2015-02-191-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14034 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow attachment thumbnails from REST API (#18707).Jean-Philippe Lang2014-12-261-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13806 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Send the content type as parameter when uploading a file.Jean-Philippe Lang2014-12-211-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13788 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Edit attachments after upload (#1326).Jean-Philippe Lang2014-11-291-3/+39
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13665 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix variable name confusion at AttachmentsController#thumbnailToshi MARUYAMA2014-06-081-3/+3
| | | | | | | This is suggested by Rails team. https://github.com/rails/rails/issues/15471#issuecomment-45419147 git-svn-id: http://svn.redmine.org/redmine/trunk@13176 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-121-1/+1
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Log an error when trying to send an attachment that cannot be read.Jean-Philippe Lang2012-12-261-1/+6
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11084 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged ajax_upload branch (#3957).Jean-Philippe Lang2012-12-101-11/+21
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10977 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Let the attachment filename be specified on upload (#12125).Jean-Philippe Lang2012-10-181-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10678 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a macro for inserting thumbnails in formatted text (#3510).Jean-Philippe Lang2012-07-161-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds Etags on attachments.Jean-Philippe Lang2012-07-081-9/+12
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9963 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Displays thumbnails of attached images of the issue view (#1006).Jean-Philippe Lang2012-07-071-1/+13
| | | | | | This behaviour can be turned on/off in Settings -> Display (off by default). Thumbnail size can be configured there too. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9933 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that REST Uploads fail with fastcgi (#10832).Jean-Philippe Lang2012-05-081-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9652 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2012-05-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2012-04-061-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9364 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2012-04-061-3/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9363 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails 3.1 compatibility.Jean-Philippe Lang2012-03-041-0/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9073 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds Redmine::Utils.random_hex for generating a random hex string.Jean-Philippe Lang2012-03-041-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9071 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removes all #verify calls in controllers. Verification is handled at routing ↵Jean-Philippe Lang2012-03-031-1/+0
| | | | | | level now that the default route is removed. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9061 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Removed testing code.Jean-Philippe Lang2012-02-231-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8933 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds support for adding attachments to issues through the REST API (#8171).Jean-Philippe Lang2012-02-231-3/+27
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8928 e93f8b46-1217-0410-a6f0-8f06a7374b81
* attachment: fix that diff type is not saved in user preference (#10152)Toshi MARUYAMA2012-02-041-0/+5
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8761 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Resourcified attachments.Jean-Philippe Lang2011-11-271-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7948 e93f8b46-1217-0410-a6f0-8f06a7374b81
* attachment: add a new feature to switch "side by side" and "inline" for ↵Toshi MARUYAMA2011-11-201-0/+2
| | | | | | patches (#9612) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7860 e93f8b46-1217-0410-a6f0-8f06a7374b81
* REST API for reading attachments (#7671).Jean-Philippe Lang2011-07-181-9/+15
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6295 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from attachments controller source.Toshi MARUYAMA2011-05-181-15/+15
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5836 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed: error when downloading a file with no matching mime type (#3782).Jean-Philippe Lang2010-01-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3281 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Auto-detect attachment content type when blank (#3782).Jean-Philippe Lang2009-12-291-1/+9
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3258 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Returns a 404 error when trying to view/download an attachment that can't be ↵Jean-Philippe Lang2009-04-251-1/+6
| | | | | | read from disk. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2692 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes new setting name.Jean-Philippe Lang2009-02-211-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2504 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a setting to limit the size of text attachments that can be displayed ↵Jean-Philippe Lang2009-02-211-1/+1
| | | | | | by the file viewer (default set to 512KB). Larger files are sent for download. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2503 e93f8b46-1217-0410-a6f0-8f06a7374b81