|
The FileConfiguration class is used with the File method to configure a BLOB column that contains file content such as a PDF or Excel file
...
filesEdit.Column("Content").File(new FileConfiguration("pdf", new Dictionary<FileMetaData, string>() { { FileMetaData.FileName, "FileName" }, { FileMetaData.ContentType, "ContentType" }, { FileMetaData.LastModified, "LastModified" }, { FileMetaData.Size, "Size" } }));
...
|
The constructor takes 2 parameters
extension (string),
extension (string[])
The valid extension or extensions associated with the file content
metaDataColumns (Dictionary<FileMetaData, string>) (optional)
A dictionary keyed on the FileMetaData enum that associates uploaded file metadata with columns in the edit control. This allows metadata to be collected automatically when a new file is uploaded and added to the table easily.
|
|