I\'d like to be able to read an XML file uploaded by the user (less than 100kb), but not have to first save that file to the database. I don\'t need that file past the curr
I need to read yaml files. I use remotipart and here the code:
in html.slim
=form_tag('/locations/check_for_import', method: :post, remote: true, multipart: true)
...
in controller
content = File.read(params[:uploadInput].tempfile) doc = YAML.load(content)