2

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?

dbugger
  • 15,868
  • 9
  • 31
  • 33
mike
  • 99
  • 2
  • 10

1 Answers1

0

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!

mike
  • 99
  • 2
  • 10