You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def filename_from_header
if file.meta.include? 'content-disposition'
match = file.meta['content-disposition'].match(/filename="?([^"|;]+)/)
return match[1] unless match.nil? || match[1].empty?
end
end
The text was updated successfully, but these errors were encountered:
{"cache-control"=>"private", "content-type"=>"binary/octet-stream", "server"=>"Microsoft-IIS/8.5", "content-disposition"=>"attachment; filename=13134102.pdf; size=426665", "x-powered-by"=>"ASP.NET", "date"=>"Fri, 04 Jan 2019 15:20:47 GMT", "content-length"=>"426665"}
support above file meta.
The text was updated successfully, but these errors were encountered: