I am trying to upload video files that are above 5Gb, I've implemented direct s3 upload from Heroku's documentation
https://devcenter.heroku.com/articles/direct-to-s3-image-uploads-in-rails#jquery-file-upload-callbacks
Everything works correctly until I press submit, after I press submit it tries to upload the file again and I get time out from Heroku. I have no idea how to fix this issue, has anyone encountered something similar?
So I was able to fix the issue by changing the following
Instead of using the model related field,
<%= f.file_field :video %>
I've changed it to
<%= file_field_tag :video %>
and it works!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.