Hi,
I am trying to use the mySmartUpload component to allow people to upload files into my server. However, I keep getting the error Invalid Files Name 'logopic' (Error 1205). Here is my code snippet:
In my first page I have a form with a file input type
<input type="file" name="logopic" size="65">
In my next page,
On Error Resume Next
' Variables
' *********
Dim mySmartUpload
Dim intCount
' Object creation
' ***************
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
' Only allow txt or htm files
' ***************************
mySmartUpload.AllowedFilesList = "jpg,gif,bmp,png"
' Upload
' ******
mySmartUpload.Upload
intCount = mySmartUpload.Save("/MP")
strLogoPic = mySmartUpload.Files("logopic").FileName
If Err Then
Response.Write(Err.description)
End if
I then get the error message Invalid Files Name 'logopic' (Error 1205). I already checked that the name of my input object in the previous page is indeed 'logopic' but I still get this error.
Can anybody help me? I have been stuck at this for some time.
Thanks.
Epon