control doesn't expose a method or property which can give you the MIME type, but you can create a custom method for finding the MIME type of a file based on its extension for example. You can have a look at this thread
where different approaches, for getting the MIME type of a file, are discussed.
Regardless of the approach you choose for getting the MIME type, it would be best to place the logic on the server-side part of the RadUpload
control. You can override the SaveChunkData
method and as soon as the entire file is uploaded, implement a custom method to get its MIME type:
.SaveChunkData(filePath, position, buffer, contentLength,
FileInfo fi =
MIMEType = GetMimeType(fi);
Then you can use the MIME type on the server or pass it to the client
by overriding the GetAssociatedData()
method. I attached a sample project to get you started, please give it a try and let me know if it helps.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>