Displaying 2 results from an estimated 2 matches for "esimplyjob".
2006 Mar 13
2
Newbie: Can''t get file to upload
...upload form set up. It appears that my file
parameter is coming into the controller as a string, not a file object.
Here''s my view:
<%= form_tag :action => ''save_HTML'',
:multipart => ''true'' %>
<%= file_field ''eSimplyJob'', ''file'' %>
<P>
<%= submit_tag "Upload" %>
</P>
<%= end_form_tag %>
Here''s my controller method:
public
def save_HTML
@filename = @params[:eSimplyJob][:file].original_filename
File.open("#{RAILS_ROOT...
2006 Mar 13
0
Upload progress problem with Ajax component
...ome code snippets
upload.rhtml:
<%= form_tag_with_upload_progress(
{ :action => ''save_HTML'' },
{ :begin => ''do_start()'',
:finish => ''do_finish(arguments[0])'',
:frequency => 5 }) %>
<%= file_field ''eSimplyJob'', ''file'' %>
<P>
<%= submit_tag "Upload" %>
</P>
<%= upload_status_tag %>
<%= end_form_tag %>
In my controller: upload_status_for :save_HTML
save_HTML (in controller):
public
def save_HTML
@filename = @params[:eS...