I'm using this in another projekt.
Dim
file As UploadedFile = UploadedFile.FromHttpPostedFile(Request.Files(fileBild.UniqueID))
I get the error when fileBild is empty
Dim file As UploadedFile = UploadedFile.FromHttpPostedFile(Request.Files(fileBild.UniqueID))
If Not file Is Nothing Then
If file.FileName.Trim().Length > 0 And file.ContentLength > 0 Then
' Things todo
End If
End If
Web.config
<httpHandlers>
<add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" />
</httpHandlers>
<httpModules>
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />
</httpModules>
<
asp:FileUpload ID="fileBild" runat="server" />
/Thanx