Set upl = Server.CreateObject("SoftArtisans.FileUp")
Set upl.Maxbytes = 300
' Receiving values from Form
categ = upl.Form("ad_type")
adtitle = upl.Form("ad_title")
poster = Session("Userid")
duration = upl.Form("ad_expired")
quantity = upl.Form("ad_quantity")
price = upl.Form("ad_price")
siteurl = upl.Form("ad_link")
img = upl.Form("ad_image")
ad_desc = upl.Form("ad_description")
FCONT = upl.ContentType
if upl.Form(image").IsEmpty then
img = "blank.gif"
'--- Use the Select Case Condition to restrict the file type.
Select Case LCase(FCONT)
' Creating Connection Object and opening the database
Set con = Server.CreateObject("ADODB.Connection")
Set Rs = Server.CreateObject("ADODB.Recordset")
I followed as you suggested but still getting the same nasty error.
SoftArtisans.FileUp.1 error '80020009'
Invalid or corrupt MIME headers. Please check the referring form's ENCTYPE .
I even removed all the checks and trying to do simple upload but no way i can get the success. If i provide the file name for upload then i get the error.. if not then also. And the most important things is.. i am getting the error on the same line.. viz... categ = upl.Form("ad_type")
Ad_type is a combo box variable which is populated with one table field value.
Set oFileUp = Server.CreateObject("SoftArtisans.FileUp")
oFileUp.Path = "D:/Temp"
'oFileUp.CreateNewFile = True
oFileUp.OverWriteFiles = False
'oFileUp.Maxbytes = 300
If Not oFileUp.Form("fileName").IsEmpty Then
If Err.Number <> 0 Then
Response.Write "<B>Error description:</B> " & Err.Description
Response.Write "File has been uploaded successfully."
Response.Write "Error: There was no file submitted for upload"
Set oFileUp = Nothing
Text feilds with a uploading feilds (I don't know what it means)
try just doing the uploading with on other inputs
hope this help
See clear as mud
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment: Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010 VB based on my own environment: vb6 sp5 ASP based on my own environment: 5.6 VB-NET based on my own environment started 2007 SQL-2005 based on my own environment started 2008 MYLE YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.