Question
Taking a filename in a 'file' field for upload..
What I'm ideally trying to achieve here is to have a 'file'
field in an insert record page, where I can select a file, and
upload it to a folder on the server. I've sorted that part on it's
own at least.
But there also needs to be a text field, eg 'File_Name', in the table so that the page can display the image.
So my question is, is it possible to browse to a file, and have the actual file upload, but also dump the text in a 'File_Name' field automatically?
Even then, there's the issue that you wouldn't want the whole text, but just the actual file name, as obviously the paths will be different - this may be something the 'trim' command can take care of?
Hope that makes sense, and that there might be a solution...
Cheers,
Iain
But there also needs to be a text field, eg 'File_Name', in the table so that the page can display the image.
So my question is, is it possible to browse to a file, and have the actual file upload, but also dump the text in a 'File_Name' field automatically?
Even then, there's the issue that you wouldn't want the whole text, but just the actual file name, as obviously the paths will be different - this may be something the 'trim' command can take care of?
Hope that makes sense, and that there might be a solution...
Cheers,
Iain
