Jeremy Thomas
1#
Jeremy Thomas Published in 2018-02-13 22:39:52Z
 I have a simple file upload field:" 
<% @post.fields.each do |name, value| %> <% end %>  that I took from the S3 online docs. The only issue is that it redirects to the S3 object after upload rather than simply returning to the same page. How can I change the form to accomplish this? I tried changing the form to rails helpers, but the upload would fail due to the automatic accept-charset="UTF-8" param.
Anthony L
2#
Anthony L Reply to 2018-02-14 04:10:01Z
 The form should contain a field for the success_action_redirect option, which has the value of the URL you would like to redirect the user to following a successful post. https://docs.aws.amazon.com/sdkforruby/api/Aws/S3/PresignedPost.html#success_action_redirect-instance_method
 You need to login account before you can post.
Processed in 0.597888 second(s) , Gzip On .