Greetings,
I'm having trouble figuring out how to code the manual upload of a single file (MultipleFilesUpload = False).
------ASPx Page-------
<CuteWebUI:Uploader runat="server" ID="Uploader1" InsertText="Select File" OnFileUploaded="Uploader_FileUploaded" ManualStartUpload="True">
</CuteWebUI:Uploader>
<asp:Button ID="btnUpload" runat="server" Text="Upload" />
------Code Behind---------
Protected Sub Uploader_FileUploaded(ByVal sender As Object, ByVal args As UploaderEventArgs)
'Copys the uploaded file to a new location.
args.CopyTo(Server.MapPath("~/uploads/") & args.FileName)
End Sub
Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
'What goes here? Uploader1.Upload requires file size and file name which I don't know how to retrieve from the control.
End Sub
----------------------------
When I set MultipleFilesUpload = True, everything works well. However, I'd like to validate other information on the form prior to uploading the file. How do I retrieve the file size and file name from the control so that I may then call Uploader1.Upload(filesize, filename, temppath)?
Thanks!