In the HTML
In the Code Behind, something like
Private Sub upload_ServerClick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles upload.ServerClick
Dim strSavePath As String = Request.PhysicalApplicationPath &
ConfigurationSettings.AppSettings("CustomerRootFol der") &
Session.Item("CustomerID") & "\"
Dim intReturn As Integer
SaveRecord()
If Not uploadedFile.PostedFile.FileName = vbNullString Then
If Not (uploadedFile.PostedFile Is Nothing) Then
Try
Dim postedFile = uploadedFile.PostedFile
Dim filename As String = Path.GetFileName(postedFile.FileName)
Dim contentType As String = postedFile.ContentType
Dim contentLength As Integer = postedFile.ContentLength
postedFile.SaveAs(strSavePath & strFileName)
"David Elliott" <Da**********@BellSouth.net.nospam> wrote in message
news:qn********************************@4ax.com...
I have a need to send a file via a POST and am looking for some
information.
As an example:
A user will be displayed an ASPX page
-- The user will select a file.
-- The file will then be read.
-- A URL Post string will be created
http://www.someWebSite.com/imageProc...e=myImage1.jpg -- The data from the file will be sent to the website for processing.
I am looking for any information on if this is possible, and how to do
this (website that explains, pseudocode, working example, etc)
Thanks,
Dave
Da**********@BellSouth.net.nospam (Remove .nospam if responding directly)