I've been receiving the following error messages from my website:
System.NullReferenceException: Object reference not set to an instance of an object. at Telerik.Web.UI.RadUpload.IsValidMimeType(UploadedFile file) at Telerik.Web.UI.RadUpload.IsValidUploadedFile(UploadedFile file, Boolean checkingFileSize, Boolean checkingFileExtension, Boolean checkingMimeType) at Telerik.Web.UI.RadUpload.ValidateUploadedFiles() at Telerik.Web.UI.RadUpload.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
the user agent is :
HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.33 Safari/532.0
I'm guessing the problem is that the user is using chrome, and for some reason it's stripping the document of a mime type. Is there any workaround that anyone know of for this, or a fix? right now I'm catching the error and telling the user to use Firefox or IE, as it works perfectly there.
this is the code for the upload control
Thank you,
Debbie
System.NullReferenceException: Object reference not set to an instance of an object. at Telerik.Web.UI.RadUpload.IsValidMimeType(UploadedFile file) at Telerik.Web.UI.RadUpload.IsValidUploadedFile(UploadedFile file, Boolean checkingFileSize, Boolean checkingFileExtension, Boolean checkingMimeType) at Telerik.Web.UI.RadUpload.ValidateUploadedFiles() at Telerik.Web.UI.RadUpload.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
the user agent is :
HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.33 Safari/532.0
I'm guessing the problem is that the user is using chrome, and for some reason it's stripping the document of a mime type. Is there any workaround that anyone know of for this, or a fix? right now I'm catching the error and telling the user to use Firefox or IE, as it works perfectly there.
this is the code for the upload control
<telerik:RadUpload ID="upldResume" runat="server" |
ControlObjectsVisibility="ClearButtons" |
InputSize="50" |
Width="475px" |
MaxFileSize="500000" |
MaxFileInputsCount="1" |
ReadOnlyFileInputs="true" |
Enabled="true" |
EnableFileInputSkinning="true" |
AllowedFileExtensions=".pdf,.doc,.docx,.wpd,.odt,.rtf,.txt" |
AllowedMimeTypes="application/pdf,application/x-pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/wordperfect,application/x-wpwin,application/vnd.oasis.opendocument.text,application/x-vnd.oasis.opendocument.text,application/rtf,application/x-rtf,text/richtext,text/rtf,text/enriched,application/txt,text/plain" |
ToolTip="Upload a resume" |
/> |
Thank you,
Debbie