Method: Refile.upload_url
- Defined in:
- lib/refile.rb
.upload_url(backend, host: nil, prefix: nil) ⇒ String
Receives a Refile backend and returns a URL to the Refile application where files can be uploaded.
333 334 335 336 337 |
# File 'lib/refile.rb', line 333 def upload_url(backend, host: nil, prefix: nil) backend_name = Refile.backends.key(backend) ::File.join(app_url(host: host, prefix: prefix), backend_name) end |