Content_type and content_size of file before save it

3 views
Skip to first unread message

Alex jimmy Montaño fuentes

unread,
Jul 24, 2016, 9:06:15 PM7/24/16
to rubyonra...@googlegroups.com
<%= form_tag('URL', :multipart => true) do %>
<p>
Video: <%= file_field_tag :avatar %>
</p>
<p>
<%= submit_tag %>
</p>
<% end %>

Is there any way to know the content_type and content_size of file
before submit the form and send them as params to the POST request?

--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages