Peter Stanford
Member
My ASP.NET application (VS 2003 and VB.NET) has the ability to export files in csv format and I can auto-save them to the web server but what I really want to do is use the HTMLInputFile control to allow the user to enter a new filename and directory on their local hard disk. When I click the Browse button on the input control I'm not able to specify a new filename.
I've used this control before to successfully upload existing files from a local hard disk and store them in my SQL database but I can't see how to save a new file back to a local hard drive.
Does anyone know of a setting for the HTMLInputFile control that designates it as a "Save As" dialog rather than an "Open File" dialog?
I can read files back from the database which then gives me the option to Open or Save them but I want to avoid writing the file to the database first or even writing it to the web server if possible.
Hopefully this is not too hard?
I've used this control before to successfully upload existing files from a local hard disk and store them in my SQL database but I can't see how to save a new file back to a local hard drive.
Does anyone know of a setting for the HTMLInputFile control that designates it as a "Save As" dialog rather than an "Open File" dialog?
I can read files back from the database which then gives me the option to Open or Save them but I want to avoid writing the file to the database first or even writing it to the web server if possible.
Hopefully this is not too hard?