Add file download function
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user