Add file download function

This commit is contained in:
kyg516
2016-09-19 19:57:10 +09:00
parent bffd4d7cad
commit ab00afa513
4 changed files with 428 additions and 380 deletions

View File

@@ -44,7 +44,7 @@ Rails.application.configure do
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
# Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.

View File

@@ -14,7 +14,7 @@ Rails.application.routes.draw do
get 'home/index' => 'home#index'
post 'home/mkdir' => 'home#make_directory'
post 'home/delete' => 'home#delete_file'
post 'file_download' => 'home#file_download'
#Volume
get 'volume/index' => 'volume#index'