Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 http status code from Active Storage Direct upload #13

Closed
x1wins opened this issue Aug 1, 2020 · 1 comment · Fixed by #14
Closed

404 http status code from Active Storage Direct upload #13

x1wins opened this issue Aug 1, 2020 · 1 comment · Fixed by #14
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@x1wins
Copy link
Owner

x1wins commented Aug 1, 2020

large file(more than 1Gbyte) for direct upload take many time.
if upload take 10min or more. i got 404 put error message from direct upload http response.
because mattr_accessor :service_urls_expire_in, default: 5.minutes
https://github.com/rails/rails/blob/master/activestorage/lib/active_storage.rb#L61-L61

@x1wins
Copy link
Owner Author

x1wins commented Aug 1, 2020

https://stackoverflow.com/a/52573490/1399891

vim config/initializers/active_storage.rb

# config/initializers/active_storage.rb
Rails.application.config.active_storage.service_urls_expire_in = 2.hour

@x1wins x1wins self-assigned this Aug 1, 2020
@x1wins x1wins added bug Something isn't working invalid This doesn't seem right question Further information is requested and removed invalid This doesn't seem right labels Aug 1, 2020
@x1wins x1wins closed this as completed in #14 Aug 1, 2020
@x1wins x1wins changed the title direct upload active storage 404 put active storage - 404 from direct upload put method Aug 1, 2020
@x1wins x1wins changed the title active storage - 404 from direct upload put method Active Storage 404 http code from direct upload put method Aug 1, 2020
@x1wins x1wins changed the title Active Storage 404 http code from direct upload put method 404 http status code from Active Storage Direct upload Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant