Project

General

Profile

redmine_s3 plugin update released

Added by Yuriy Konstanchenko over 9 years ago

Intro

We would like to inform about the release of our fork of the original redmine_s3 plugin that is targeted at Redmine 3.0.0 and has been already merged to plugin (it was forked from) and available for download from its GIT page.

Details

This plugin fork makes file attachments be stored on Amazon S3 rather than on the local file system.

Fork Features

Apart from features of the original plugin, this fork has the following features:
  • Image thumbnail generation introduced. Image thumbnail is generated if it fails to display once page is opened (there is an AJAX call to server here). Uses RMagick.
  • Folder for thumbnails is specified in config.
  • Files are now stored using relative paths with default redmine folder structure (file_folder/year/month/file.ext). It is based on "disk_directory" column of the database.
  • Now files have their original filenames included into "Content-Disposition" value of S3 object so that browser downloads files with original filenames without a digital prefix (e.g. image.jpg instead of 150319143442_image.jpg).
  • URLs for thumbnails and images use full URL to S3 without the 'go to redmine-server => redirect to S3' behavior. Other files are still served with redirect.
  • Fixed "View" (clicking the "Magnifier" icon to the right from the file name) action for text files and diffs. files_to_s3 task now sets correct "Content-Type" and "Content-Disposition" for files. The task searches correct directory in database before uploading files to S3.
  • Files_to_s3 file existence check was fixed and now uses folder from S3 config.
  • Max file size validation using redmine attachment_max_size config was added both for task and for new files.

Download page

Download and installation instructions as well as detailed description of the plugin are available at https://github.com/ka8725/redmine_s3 .