AspSmartUpload only works half the time

S

SayMyName

Due to my browser being danishm the error message will not mean much to most of you. It is an "Unspecified problem" with "Provider (0x80004005)"
POST Data: error ''80020009''

The error only arrives with some apperently random files being uploaded.

Please Help


The codes being used for the upload is:
Response.Write "<form method=""post"" action=""./item/upload.asp"""
Response.Write "enctype=""multipart/form-data"" name=""UploadForm"">"
Response.Write "<input type=""hidden"" name=""itemidq"" value="""
Response.Write "" & rs("itemID") & """>"
Response.Write "<input type=""file"" name=""fileen"" size=""30"">"
Response.Write "<input type=""submit"" value=""Upload"" name=""send"">"
Response.Write "</form>"



And Upload.Asp Contains

Set myupload = Server.CreateObject("aspSmartUpload.SmartUpload")

myupload.AllowedFilesList = "gif,jpg,jpeg,GIF"
myupload.MaxFileSize = 50000

myupload.Upload

sqlDelete = "DELETE FROM imageData WHERE imageID = " & myupload.Form("itemidq")
conn.Execute(sqlDelete)

''Create Connection
''Set Conn = Server.CreateObject("ADODB.Connection")
''Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
'' "Data Source=" & Server.MapPath("data.mdb")

Set Rs = Server.CreateObject("ADODB.recordset")
Rs.Open "SELECT * FROM imageData", conn,3,3

''Select each file
For each file In myupload.Files
If not file.IsMissing Then ''Check for missing file
''Add the current file in database
Rs.AddNew
file.FileToField Rs("imgDta")
''Rs.Fields("imgDta") = "..."
Rs("imageID") = myupload.Form("itemidq")
Rs.Update
intCount = intCount + 1
End If
 
K

Kyle Peterson

so try something else... google it....or contact them
and why make multiple posts about it over and over all over the place
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top