Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: upload file to webpage

  1. #1
    keroed1 Guest

    Default upload file to webpage

    i trying to expand my knowledge i trying to simulate what some websites do that allow member to upload files.

    thus i developed a website that i am testing locally on my machine and i wanted to be able to go to a page and click browse find a file and upload that file into my webserver.

    i planning to have a test folder located at http://localhost/try/uploadfiles that i am going to upload all the files to. i hope i not sounding confused

    thus the scenario is i can choose to browse and upload the following file from my machine (c:\video.swf) and then its going to be uploaded to http://10.0.0.1/try/uploadfiles

  2. #2
    Join Date
    Jul 2006
    Posts
    239
    Rep Power
    0

    Default

    So what exactly is the problem here. When you upload the file you have to do a UploadFile.PostedFile.SaveAs("FileName") where FileName is the relative path to the folder on the server (ex: C:\Temp\)

  3. #3
    Join Date
    Feb 2006
    Posts
    4,242
    Rep Power
    0

    Default

    Simply use dreamweaver. I want to test a site still but I want to use a free web host;
    What is a good free webhost ? (php)

    Also when I goto :http://localhost or http://localhost/localstart.asp
    -I am not getting the directory structure --page cannot be displayed ---?HELP me out here I did it with ASP, but I dont remember
    - but the site load with http: //localhost/MyWeb/Websitefolder/homepage.php

    I am using dreamweaver, IIS and PHP 5
    Last edited by Utech22; Jan 18, 2007 at 10:24 AM. Reason: updating
    |--- www.RealJamaicaEstate.com ™ ---|
    Invest small = small returns [micro enterprise] | Invest Big = returns Big [macro enterprise]
    --- www.fashionsJAMAICA.com ™ -|- www.ChampsJamaica.com

  4. #4
    Join Date
    Jan 2004
    Posts
    2,011
    Rep Power
    0

    Default

    does it have to be asp.. (blech).. i could help with the file upload its really simple to be honest but i dont really dabble in asp much.

  5. #5
    Join Date
    Jul 2006
    Posts
    239
    Rep Power
    0

    Default

    Quote Originally Posted by Utech22 View Post
    Simply use dreamweaver. I want to test a site still but I want to use a free web host;
    What is a good free webhost ? (php)

    Also when I goto :http://localhost or http://localhost/localstart.asp
    -I am not getting the directory structure --page cannot be displayed ---?HELP me out here I did it with ASP, but I dont remember
    - but the site load with http: //localhost/MyWeb/Websitefolder/homepage.php

    I am using dreamweaver, IIS and PHP 5

    The only thing i could think of as to why you're getting a page cannot be displayed is that your IIS server service is currently off. Go to your IIS Configuration and do a start or restart and see if that helps.

  6. #6
    Join Date
    Jul 2006
    Posts
    239
    Rep Power
    0

    Default

    Quote Originally Posted by death_knight View Post
    does it have to be asp.. (blech).. i could help with the file upload its really simple to be honest but i dont really dabble in asp much.
    ASP, ASP.NEt 1.1 and ASP.Net 2.0 are really simply. But many people make it sound so difficult. Don't get me wrong; i like PHP but sometimes it gets annoying doing that scripting in one page and everything gets confused while with ASP you have the option in using a external file to manage your code and you get alot of help from the IDE when debuging

  7. #7
    Join Date
    Jan 2007
    Posts
    164
    Rep Power
    18

  8. #8
    Join Date
    Feb 2006
    Posts
    4,242
    Rep Power
    0

    Default

    The only thing i could think of as to why you're getting a page cannot be displayed is that your IIS server service is currently off. Go to your IIS Configuration and do a start or restart and see if that helps.
    that was done, in my trouble shooting
    |--- www.RealJamaicaEstate.com ™ ---|
    Invest small = small returns [micro enterprise] | Invest Big = returns Big [macro enterprise]
    --- www.fashionsJAMAICA.com ™ -|- www.ChampsJamaica.com

  9. #9
    Join Date
    Jul 2006
    Posts
    239
    Rep Power
    0

    Default

    Quote Originally Posted by Utech22 View Post
    that was done, in my trouble shooting
    Ok. Then go to the IIS Manager and view the properties of the Website. In the dialog box go to the "Home Directory" tab and make sure "Directory Browsing" is checked. Click "apply" and let me know if that works.

  10. #10
    Join Date
    May 2003
    Posts
    108
    Rep Power
    0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •