working on a picture upload script for a business website, but the picture upload only works in firefox!? anyone had this before? i need help ASAP (just like everyone else here right ;)). here is my code, thanks in advance.
<script language="VB" runat="server">
Dim savePath As String = "./uploads/"
Sub Upload_Click(source As Object, e As EventArgs)
If Not (uploadedFile.PostedFile Is Nothing) Then
Dim postedFile = uploadedFile.PostedFile
Dim filename As String = Path.GetFileName(postedFile.FileName)
Dim contentType As String = postedFile.ContentType
Dim contentLength As Integer = postedFile.ContentLength
Dim ProductID = request("ProductID")
Dim Caption=request("Caption")
postedFile.SaveAs(MapPath(savePath) & filename)
Response.Redirect("fileupload2.asp?variable=" & postedFile.Filename & "&id1=" & ProductID &"&Caption=" & Caption)
End If
End Sub
</script>
</head>
<body>
<font face="verdana" size=1 color="#34321C">
<b>Upload Picture</b>
<form enctype="multipart/form-data" runat="server">
<input id="ProductID" name="ProductID" type="hidden" value="<%=request("ID")%>">
Select File to Upload:
<input id="uploadedFile" type="file" runat="server"><br>
Title:<br><input id="Caption" name="Caption" type="text"><br>
<p>
<input type=button id="upload"
value="Upload"
OnServerClick="Upload_Click"
runat="server">
<p>
<asp:Label id="message" runat="server"/>
</form>