IUploadFileOptions.FilenameFormat property

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Format of the file name like "ProductImage/{1:00000}/{0:00000000}_{2}". Parameter 0 is the row identity value, 1 is identity value / 1000, and 2 is a random string like 2cxs4bc, 3 is current date/time, 4 is original file name. You can also use the shortcut "ProductImage/" which is equivalent to the prior sample. If you don't specify this, it will default to something like Product/ProductImage/ which is generated by combining row class name and field name.

public string FilenameFormat { get; }

See Also