I'm using ASP AmartUpload to upload files to a folder which works fine. I'm aso successful in retrieving other form data using uploadObj.form.
However, when using uploadObj.files to retrieve the filenames to I can write them to the database I get an error that states: Object doesn't support this property or method. All the material I've read states that it's .files but it clearly doesn't work.
Variables have been checked, all are valid and declared.
Here is the code:
Note that I'm not doing the response.redirect yet as I first want to get the filenames written to the page to verify they are there.
<% @Language = VBScript %>
<% Option Explicit %>
<% Dim intID, vchThumbnail, vchImage, uploadObj
'Create an instance of our SmartUpload object.
Set uploadObj = Server.CreateObject("aspSmartUpload.SmartUpload")
'Set allowed files
uploadObj.AllowedFilesList = "jpg, gif"
'Process the upload
'Save the file
intID = uploadObj.Form("intID")
vchThumbnail = uploadObj.files("vchThumbnail")
vchImage = uploadObj.files("vchImage")
<% = intID%><br>
<% = vchThumbnail %><br>
<% = vchImage %><br>