I know this one's still in beta but is there any way to set the AllowedFileExtensions, AllowedMimeTypes and MaxFileSize of the integrated RadUpload Control?
2 Answers, 1 is accepted
0
Tervel
Telerik team
answered on 03 Mar 2009, 08:35 AM
Hello Jimmie,
Currently the RadFileExplorer exposes most of the embedded controls through public properties, e.g.
RadFileExplorer1.Grid, RadFileExplorer1.ToolBar, RadFileExplorer1.TreeView. However, it does not expose the Upload control at this point. We have added this to our TODO list and it will be done for the official Q1 2009 release.
Then you will be able to set properties directly to the RadUpload.
Actually you do not have to wait until the next release - the properties you wish to set are actually part of the RadFileExplorer configuration, so you should set them via the Configuration property:
the above code will set the max upload size to 600KB (600 * 1024 bytes) and the allowed file extensions to .jpg and .gif. We will allow access to the RadUpload component in the next release, but the approved method for setting the file extensions and max upload size is with the Configuration property.