My site allows users to upload csv files for processing. Everything works well, but in response, I would like to report something like "Your abc.csv file was processed OK."
Unfortunately, I cannot find the actual source file name in params, although Firebug tells me that this is part of the message.
Any tips?
Thanks....
Try using debugging information about the results of your form.
http://guides.rubyonrails.org/debugging_rails_applications.html#debug
As Jarrod mentions in the comments above. Use params [: file] .original_filename
, (file1 file2). ActionController:: UploadedTempfile, ActionController:: UploadedStringIO.
, , original_filename.
Source: https://habr.com/ru/post/1710307/More articles:Best iPhone OS Testing Practices - iphoneWhat good are advanced EC2 management tools? - amazon-web-servicesPHP - you need cron to handle the reverse site during user registration ... (or the fork process) - phpsharepoint web service Maximum request length exceeded even if file is at maximum file size - web-servicesHow to configure ReportViewer so that it can export CSV to ASP.NET? - reportviewerIs it possible to take a screenshot of a webpage using ASP.net with C # code - c #Ajax Highscores Security - javascriptHow to clear openwysiwyg editor contents? - javascriptПолучить последнее изменение и другую информацию о файле с удаленного сервера с помощью PHP - fileMaximum length of a dynamic array in Delphi? - delphiAll Articles