Persits ASPUpload

Discussion in 'ASP.NET 2.0' started by Takeshi Eto, Oct 2, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

  2. Thanks Eric,


    Yes I did and I get an error msg (below). I'm sure i'm doing something fundamentally wrong. I'm just creating the 2 files ("aspupload1.asp" & "formuploadpage.asp")in Dreamweaver CS3 and then uploading them to my website? the form upload (formuploadpage.asp) appears towork. Can you (or anyone) please tell me where i'm going wrong?


    Thanks,


    Paul







    The website cannot display the page
    <!-- This row is for HTTP status code, as well as the divider-->
    <ID id=http500>HTTP 500</ID>
    <!-- Error Body -->



    Most likely causes:

    • <LI id=causeSiteMaintenance>The website is under maintenance.
      <LI id=causeSiteError>The website has a programming error.
    <!-- What you can do -->



    What you can try:<!-- refresh page -->







    [​IMG]
    Refresh the page.<NOSCRIPT id=refreshPage></NOSCRIPT><!-- back to previous page -->







    [​IMG]
    Go back to the previous page.<NOSCRIPT id=goBack></NOSCRIPT><!-- InfoBlock -->







    [​IMG]
    More information<NOSCRIPT></NOSCRIPT>

    This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.
    For more information about HTTP errors, see Help.
     
  3. Can you post your code for the aspupload1.asp? The error message is not sufficient.

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  4. Code for "aspupload1.asp":


    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <HTML>

    <%
    Set Upload = Server.CreateObject("Persits.Upload")
    count = upload.savevirtual ("/aspupload")
    Response.Write Count &amp; " file(s) uploaded"
    %>
    </BODY>
    </HTML>



    Code for "formuploadpage.asp":


    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <html>
    <head>
    </head>

    <form action="aspupload1.asp" method="post" enctype="multipart/form-data">
    <input type="file" size="40" name="FILE1" />

    <input type="submit" value="Upload!" />
    </form>
    </body>
    </html>
    Codes for
     
  5. Hi,</o:p>
    </o:p>
    I need to allow my web sitemembers to upload document files (.doc, .pdf etc) from their PCs to my web server. I have been advised to use Persits ASPupload.</o:p>
    </o:p>
    I have used Dreamweaver to build my web site and this is about the extent of my technical ability. I would be very grateful if someone could explain how I can get this working. I have read the Persits manual to no avail, I cannot get the sample code to work.</o:p>
    </o:p>
    Many thanks</o:p>
    Paul</o:p>
     
  6. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

    The server path to rootis listed in your Control Panel Account Info section.



    Eric

    http://www.DiscountASP.NET - Microsoft Gold Certified Partner
    - asp.netPRO Magazine 2007 Readers' Choice Award for Best ASP.NET Web Hosting Service
    - Visual Studio Magazine 2007 Readers' Choice Award for Best .NET Web Hosting Service
     
  7. It's working now thanks.Thank youDiscountASP for your help.


    Paul
     
  8. You can use something like Server.MapPath('\') to find path to the application root ,depending on where you asp files are located.

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  9. Put <%@LANGUAGE='VBSCRIPT' and not <%@LANGUAGE='JAVASCRIPT'...

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  10. That has helped thanks, but it still fails:-





    Persits.Upload.1 error '800a0005'


    The system cannot find the path specified.


    /aspupload1.asp, line 12
    I guessI need to put in the correct file path to upload the file to. How do I see the file path on my web site area?

    Many thanks
    Paul
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page