Hi Guys,
Can anyone advise on how to get get a file's filepath via a form?
I am working on using a form to allow a user to select a file, then the
app uses FTP to transfer the file to the server.
As part of ftp you must supply it the location/filepath of your file.
I am using the form element 'file_field' - which does
return a filepath - but not really!
eg., say my file lived in:
/my/files/burger.jpg
but the information in the 'file_field' is stored as:
--- !ruby/object:ActionCo ntroller::Uploa dedStringIO
content_type: image/jpeg
original_filena me: burger.jpg
original_path: burger.jpg
Any help would be appreciated!
Cheers
Adam
Can anyone advise on how to get get a file's filepath via a form?
I am working on using a form to allow a user to select a file, then the
app uses FTP to transfer the file to the server.
As part of ftp you must supply it the location/filepath of your file.
I am using the form element 'file_field' - which does
return a filepath - but not really!
eg., say my file lived in:
/my/files/burger.jpg
but the information in the 'file_field' is stored as:
--- !ruby/object:ActionCo ntroller::Uploa dedStringIO
content_type: image/jpeg
original_filena me: burger.jpg
original_path: burger.jpg
Any help would be appreciated!
Cheers
Adam
Comment