468,242 Members | 1,888 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,242 developers. It's quick & easy.

is_uploaded_file fails...

exoskeleton
104 100+
good day dear experts... i have a problem about is_uploaded_file 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
Oct 25 '06 #1
6 3521
raji20
28
good day dear experts... i have a problem about is_uploaded_file 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_file function is available for ,
(PHP 3 >= 3.0.17, PHP 4 >= 4.0.3, PHP 5)
Oct 26 '06 #2
exoskeleton
104 100+
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?

is_uploaded_file function is available for ,
(PHP 3 >= 3.0.17, PHP 4 >= 4.0.3, PHP 5)
Oct 26 '06 #3
raji20
28
I think you forgot to add enctype="multipart/form-data" in the form , thats why you the function always returned false, try this.

<form action="" method="POST" enctype="multipart/form-data">
<input type="file" name="sfile" id="sfile">
<input type="submit" name="submit" value="submit">
</form>
Oct 26 '06 #4
exoskeleton
104 100+
ah ok thank you sir...but what's that for? i mean what is the purpose of that enctype?
Oct 26 '06 #5
raji20
28
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.
Oct 27 '06 #6
exoskeleton
104 100+
I see.. now its working! thank you very much sir...
more power
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.
Oct 27 '06 #7

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Ralph Freshour | last post: by
2 posts views Thread by Ralph Freshour | last post: by
6 posts views Thread by kenneth fleckenstein nielsen | last post: by
2 posts views Thread by Richard Hsu | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.