This topic is locked
[SOLVED]

Get import filename on import page

11/21/2022 8:59:49 AM
ASPRunner.NET General questions
T
tetter author

Hi all,
I needed to save the filename which is imported using the import page.

Alexey aswered to me, that this can be done the following way and I wanted to share this with the community.

You can use the following code in Import page: BeforeProcess event:

HttpPostedFile file = HttpContext.Current.Request.Files["importFile1"];
if( file != null ) {
MVCFunctions.Echo( file.FileName );
}

or assign it to a session variable ...

XSession.Session["importFilename"] = file.FileName;

For PHPRunner see this here ...

Rgs Thomas

admin 11/21/2022

Thank you for sharing, Thomas!