leeboycymru
Programmer
I built a system before that could easily handle uploading 1 image via an admin page.
Now im building another and this time i wont to be able to upload 3 images at this time and maybe more if needs be.
Im using the code below in the form:
tr valign="bottom">
<td height="21" colspan="3"><strong>Picture of Full Length Clock:</strong></td>
</tr>
<tr>
<td height="21" colspan="3"><input type="file" name="artPicFull" id="artThumbPic3"
size="50"></td>
</tr>
<tr valign="bottom">
<td height="21" colspan="3"><strong>Picture of Hood of Clock:</strong></td>
</tr>
<tr>
<td height="21" colspan="3"><input type="file" name="artHood" id="artThumbPic3"
size="50"></td>
</tr>
<tr valign="bottom">
<td height="21" colspan="3"><strong>Picture of Face of Clock:</strong></td>
</tr>
<tr>
<td height="21" colspan="3"><input type="file" name="artFace" id="artThumbPic3"
size="50"></td>
</tr>
and the asp code is below:
Set Upload = Server.CreateObject("Persits.Upload")
theCount = upload.save(server.mappath("..")&"\images\uploaded")
For Each File in Upload.Files
filename = File.FileName
filename2 = File.FileName
filename3 = File.FileName
Next
'Count = Upload.SaveVirtual("../upload")
' Get the form variables
addProduct = TRIM (Upload.Form("addProduct"))
updateProduct = TRIM (Upload.Form("updateProduct"))
deleteProduct = TRIM (Upload.Form("deleteProduct"))
'response.write("delete=" & deleteProduct)
delID = TRIM (Upload.Form("delID"))
catID = TRIM (Upload.Form("catID"))
artTitle = TRIM (Upload.Form("artTitle"))
artCategory = TRIM (Upload.Form("artCategory"))
artBriefDesc = TRIM (Upload.Form("artBriefDesc"))
artPrice = TRIM (Upload.Form("artPrice"))
artPicFull = TRIM (filename)
artHood = TRIM (filename2)
artFace = TRIM (filename3)
Im not getting it to be honest, and could do with some help.
cheers
Lee
Now im building another and this time i wont to be able to upload 3 images at this time and maybe more if needs be.
Im using the code below in the form:
tr valign="bottom">
<td height="21" colspan="3"><strong>Picture of Full Length Clock:</strong></td>
</tr>
<tr>
<td height="21" colspan="3"><input type="file" name="artPicFull" id="artThumbPic3"
size="50"></td>
</tr>
<tr valign="bottom">
<td height="21" colspan="3"><strong>Picture of Hood of Clock:</strong></td>
</tr>
<tr>
<td height="21" colspan="3"><input type="file" name="artHood" id="artThumbPic3"
size="50"></td>
</tr>
<tr valign="bottom">
<td height="21" colspan="3"><strong>Picture of Face of Clock:</strong></td>
</tr>
<tr>
<td height="21" colspan="3"><input type="file" name="artFace" id="artThumbPic3"
size="50"></td>
</tr>
and the asp code is below:
Set Upload = Server.CreateObject("Persits.Upload")
theCount = upload.save(server.mappath("..")&"\images\uploaded")
For Each File in Upload.Files
filename = File.FileName
filename2 = File.FileName
filename3 = File.FileName
Next
'Count = Upload.SaveVirtual("../upload")
' Get the form variables
addProduct = TRIM (Upload.Form("addProduct"))
updateProduct = TRIM (Upload.Form("updateProduct"))
deleteProduct = TRIM (Upload.Form("deleteProduct"))
'response.write("delete=" & deleteProduct)
delID = TRIM (Upload.Form("delID"))
catID = TRIM (Upload.Form("catID"))
artTitle = TRIM (Upload.Form("artTitle"))
artCategory = TRIM (Upload.Form("artCategory"))
artBriefDesc = TRIM (Upload.Form("artBriefDesc"))
artPrice = TRIM (Upload.Form("artPrice"))
artPicFull = TRIM (filename)
artHood = TRIM (filename2)
artFace = TRIM (filename3)
Im not getting it to be honest, and could do with some help.
cheers
Lee