Upload question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rambaldi
    New Member
    • Mar 2007
    • 42

    Upload question

    Whats good people!!!

    I'm makin a script to upload videos, and i dont know how to make a button to get access to the user's directories...

    ...so, theres a special type of button or theres code to type find the directory???

    If you didnt understand, ust say something, ill try to express myself better =)

    Thanks in Advance.

    Rambaldi
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, Rambaldi.

    Are you trying to list the contents of a directory containing all the files a User has uploaded?

    Comment

    • Rambaldi
      New Member
      • Mar 2007
      • 42

      #3
      Hey pb []

      No, i want to get a directory where the user content is located. like, when you want to upload a video on youtube, you gotta give the path where your video is in your computer, you understand?

      Comment

      • pbmods
        Recognized Expert Expert
        • Apr 2007
        • 5821

        #4
        Ah. Gotcha.

        The info you'll be looking for is in the $_FILES superglobal. Check out this document.

        Comment

        • Motoma
          Recognized Expert Specialist
          • Jan 2007
          • 3236

          #5
          I think what you are looking for is the HTML input tag. Inside your FORM element, you would put the following line:

          <input type="files" name="uploadedf ile" />

          Then, as pbmods stated, you will access it through the $_FILES['uploadedfile'] array.

          Comment

          • Rambaldi
            New Member
            • Mar 2007
            • 42

            #6
            Motoma and pbmods...

            ...YOU ROCK!!! lol thanks for the help guys :)

            Comment

            • Motoma
              Recognized Expert Specialist
              • Jan 2007
              • 3236

              #7
              No problem. Come back anytime you have a question.

              Comment

              Working...