I have a custom form, and on this form, there is “File name” field, where User can specify the path to the file, located on his local machine.
Also, there is a button “Download” on this form, which should upload the file (which is specified in the “File name” field).
When I try to read the file by using -
var readerStream = new System.IO.StreamReader(catalogVersion.Filename);
the file searching and reading is executed on the server machine (not from User’s local machine).
There is a standard FileUpload control, which I can’t use, since this file is used for many purposes (not only for Import), but and for mapping/settlement with other fields from other tables (so I would need to download this file every time when form is opened, which is ridicules).
So, the question is – how I can “read” the file, if I have the path to this file, which is located on the local machine?