How can I find out what type of file is sent? For example, csv or xls ... Give the code, please ... I get the file like this:
aut_name = uploaded_io.original_filename File.open(Rails.root.join('public', 'uploads_prices', uploaded_io.original_filename), 'wb') do |file| file.write(uploaded_io.read) end as_load(aut_name)
Maybe MIMO, but how?
source share