我如何查看正在发送的文件类型?例如,csv 或 xls ......请提供代码......我得到文件:
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)
也许通过 MIMO,但如何?