Pure ASP.NET Upload 2 AddOn Manual
Pure ASP Upload Add On Pack - Rename uploaded files
This Server Behavior allows you to rename the uploaded files in a very flexible way.
How to do it
- Open page
You should place the "Rename Uploaded Files" Server Behavior on a page where you have placed already the "Pure ASP Upload" Server Behavior.
- Apply Pure ASP Upload
Set Conflict Handling to Make Unique.
Leave After Uploading Go To, empty.
- Apply Rename Uploaded Files
- Save your file
Upload folder - Enter the virtual folder (relative to the current) where the files are uploaded. Leave it empty if you have selected the store the full patn.
Rename Mask - enter the rename mask. This is an expression that should result in a string that each uploaded file will be renamed to. You can use special masks in this string: ##name## will give you the filename and ##ext## its extension: "myFile_##name##.##ext##" This will place myFile in front of the excisting file name.
The file will be saved first, then renamed and then the latest value will
be saved in the database.