I have an uploader with accepted file types set. Is there a way to display an error message? Right now, it just doesn't upload the file but no message is displayed?
<telerik:RadUpload ID="attachedFile" runat="server" MaxFileInputsCount="1" ControlObjectsVisibility="None" Width="300" TargetFolder="~/UploadedGrantResponse" OverwriteExistingFiles="true" AllowedFileExtensions=".doc,.docx,.pdf"> </telerik:RadUpload>If (attachedFile.UploadedFiles.Count > 0) Then For Each postedFile As UploadedFile In attachedFile.UploadedFiles If Not [Object].Equals(postedFile, Nothing) Then targetFileName = Path.Combine(targetFolder, postedFile.GetNameWithoutExtension() & " " & time & postedFile.GetExtension()) fileName = postedFile.GetNameWithoutExtension() & "%20" & time & postedFile.GetExtension() fileName = fileName.replace(" ", "%20") deleteFile = postedFile.GetName() postedFile.SaveAs(targetFileName) End If 'if not object Next 'for each uploaded fileEnd If 'if attachedFile.UploadedFiles.Count