access db is not write

Last post 07-13-2012, 7:15 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  07-12-2012, 7:51 AM 74118

    access db is not write

    Sorry for bad english.

    aspuploader want to use the access database 'file name, but I guess I could not find one example writible article about a new program and not at all. Can you help me?
  •  07-13-2012, 7:15 AM 74123 in reply to 74118

    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 as RSS news feed in XML