is_uploaded_file fails...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • exoskeleton
    New Member
    • Sep 2006
    • 104

    is_uploaded_file fails...

    good day dear experts... i have a problem about is_uploaded_fil e function.. it alwayz return false..is this function available in PHP version 5.0.1 or only in later version? im using PHP 5.0.1

    thank you
  • raji20
    New Member
    • Aug 2006
    • 28

    #2
    Originally posted by exoskeleton
    good day dear experts... i have a problem about is_uploaded_fil e function.. it alwayz return false..is this function available in PHP version 5.0.1 or only in later version? im using PHP 5.0.1

    thank you
    is_uploaded_fil e function is available for ,
    (PHP 3 >= 3.0.17, PHP 4 >= 4.0.3, PHP 5)

    Comment

    • exoskeleton
      New Member
      • Sep 2006
      • 104

      #3
      ah ok.. so do you have an idea why is it alwayz returning false?
      here is my form:

      <form action="" method="POST">
      <input type="file" name="sfile" id="sfile">
      <input type="submit" name="submit" value="submit">
      </form>

      is there someting wrong with my form?

      Originally posted by raji20
      is_uploaded_fil e function is available for ,
      (PHP 3 >= 3.0.17, PHP 4 >= 4.0.3, PHP 5)

      Comment

      • raji20
        New Member
        • Aug 2006
        • 28

        #4
        I think you forgot to add enctype="multip art/form-data" in the form , thats why you the function always returned false, try this.

        <form action="" method="POST" enctype="multip art/form-data">
        <input type="file" name="sfile" id="sfile">
        <input type="submit" name="submit" value="submit">
        </form>

        Comment

        • exoskeleton
          New Member
          • Sep 2006
          • 104

          #5
          ah ok thank you sir...but what's that for? i mean what is the purpose of that enctype?

          Comment

          • raji20
            New Member
            • Aug 2006
            • 28

            #6
            Originally posted by exoskeleton
            ah ok thank you sir...but what's that for? i mean what is the purpose of that enctype?

            Multipart/Form-data is used when you have an inputfile control in your form, basically it is to facilitate that upload of binary data.


            Enctype (encoding type) specifies the media type of the underlying data.

            Comment

            • exoskeleton
              New Member
              • Sep 2006
              • 104

              #7
              I see.. now its working! thank you very much sir...
              more power
              Originally posted by raji20
              Multipart/Form-data is used when you have an inputfile control in your form, basically it is to facilitate that upload of binary data.


              Enctype (encoding type) specifies the media type of the underlying data.

              Comment

              Working...