Accessing uploaded file in Row_Updated

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
cheemingyong
User
Posts: 37

Accessing uploaded file in Row_Updated

Post 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");
}


motfs
User
Posts: 258

Post 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>


Post Reply