Re: access db is not write

  •  07-13-2012, 7:15 AM

    Re: access db is not write

    Hi hackerim,
     
    Please refer to example page "form-keepingstate.asp", in this example it shows you how to get the upload file name by classic asp code. Then you can save it it database there.
     
    What I mean is the code below. mvcfile.FileName  is the original file name. You can save it there.
     
    <%
    Dim processedlist,guidarr
    processedlist=Request.Form("processedlist") & ""
    If Request.Form("myuploader")&""<>"" Then
    If processedlist="" Then
    processedlist=Request.Form("myuploader")
    Else
    processedlist=processedlist & "/" & Request.Form("myuploader")
    End If
    End If
    If processedlist<>"" Then
    Dim list,i
    list=Split(processedlist,"/")
    Response.Write("<table style='border-collapse: collapse' class='Grid' border='0' cellspacing='0' cellpadding='2'>")
    For i=0 to Ubound(list)
    Dim mvcfile
    Set mvcfile=uploader.GetUploadedFile(list(i))
    Response.Write("<tr>")
    Response.Write("<td>")
    Response.Write("<img src='aspuploader/resources/circle.png' border='0' />")
    Response.Write("</td>")
    Response.Write("<td>")
    Response.Write(mvcfile.FileName)
    Response.Write("</td>")
    Response.Write("<td>")
    Response.Write(mvcfile.FileSize)
    Response.Write("</td>")
    Response.Write("</tr>")
    Next
    Response.Write("</table>")
    End If
    %>
     
     
    Regards,
     
    Ken 
View Complete Thread