Hi,
I really can’t figure out why I am not able to download files from my
testing server.
I am able to upload file to the /files folder. Settings most close to
the problem:
set :static, true
set :public_dir, ‘/files’
get ‘/files/:filename’ do |filename|
send_file(’./files/#{filename}’, :filename => filename, :type =>
‘application/octet-stream’)
end
The link is shown well in the browser as well as it says “the proper
link” does not contain the file. I am pretty sure it contains. The
server shows error 404. It seems to me it is connected with some ‘halt’
function but I can’t figure out how to treat that.
Thanks in advance.