Hosting and web page problems, ask for help!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kuzure
    New Member
    • Dec 2006
    • 48

    Hosting and web page problems, ask for help!!!

    Dear friends,

    I had host a server, and i also had a webpage that allow the user to click on the "browse" button to search the needed file. But the "browse" button actually only "browse" the computer or the user.

    Code:
    <html>
    <body>
    <form name="form1" enctype="multipart/form-data" method="post" action="">
      Browse your file
    	   <input name="file_read" type="file" id="file_read">
            <input type="submit" name="Submit" value="OK">
         
    	 </form>
    </body>
    </html>
    Is it possible to "browse" the host computer?

    Best Regards.
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    Originally posted by kuzure
    Dear friends,

    I had host a server, and i also had a webpage that allow the user to click on the "browse" button to search the needed file. But the "browse" button actually only "browse" the computer or the user.

    Code:
    <html>
    <body>
    <form name="form1" enctype="multipart/form-data" method="post" action="">
      Browse your file
    	   <input name="file_read" type="file" id="file_read">
            <input type="submit" name="Submit" value="OK">
         
    	 </form>
    </body>
    </html>
    Is it possible to "browse" the host computer?

    Best Regards.
    This HTML form is going to execute in client browser, once you put the input type as file it will browse the files on local computer where you executing the web page, You can't access the Hosting server local files with this form. if you want you can access the files available under a directory in your web root. but not from this html form.

    Comment

    • kuzure
      New Member
      • Dec 2006
      • 48

      #3
      Originally posted by ajaxrand
      This HTML form is going to execute in client browser, once you put the input type as file it will browse the files on local computer where you executing the web page, You can't access the Hosting server local files with this form. if you want you can access the files available under a directory in your web root. but not from this html form.

      Sorry for disappearing few days, my internet connection had some problem, hehe^^

      Hrm, actually I dont get what you said. Do you have any example?

      Best Regards

      Comment

      • ak1dnar
        Recognized Expert Top Contributor
        • Jan 2007
        • 1584

        #4
        Originally posted by kuzure
        Sorry for disappearing few days, my internet connection had some problem, hehe^^

        Hrm, actually I dont get what you said. Do you have any example?

        Best Regards
        Once you uploaded your files to the Hosting server you have to give the download links to the users to download that files.You can't browse the Hosting server Directories from a <input type="file"> element.
        google it for find out some download scripts using PHP.

        Comment

        • kuzure
          New Member
          • Dec 2006
          • 48

          #5
          Originally posted by ajaxrand
          Once you uploaded your files to the Hosting server you have to give the download links to the users to download that files.You can't browse the Hosting server Directories from a <input type="file"> element.
          google it for find out some download scripts using PHP.

          Erm...ok, I try to search for some information. Thanks.

          Best Regards.

          Comment

          Working...