Page 1 of 1

Accessing uploaded file in Row_Updated

Posted: Thu Sep 14, 2017 10:19 am
by cheemingyong

hi i have a file upload field in my edit form and i would like to write a function to process
an excel after the file upload. so i figured the best place to plant this is in
Row_Updated under table events ?

Then from there i would like to find the filename and physical location of the file that is uploaded.
Is there anyway to go about this ?

public void Row_Updated(OrderedDictionary rsold, OrderedDictionary rsnew) {
// get filename of uploaded here to be done here.
ew_Write("Row Updated");
}


Re: Accessing uploaded file in Row_Updated

Posted: Thu Sep 14, 2017 10:51 am
by motfs

To check the file name, use:
rsnew["<UploadFieldName>"]

The upload folder will be (specify in ASP.NET Settings -> General Options -> File Upload -> Upload folder if you do not specify for the individual field):
<projectfolder>/wwwroot/<uploadfolder>