Maybe you want to share with the rest of us, or at least me how you did it?
:)
/Micke
Jas [EMAIL PROTECTED] skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Nevermind... =)
Jas [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am wondering if
Oops... Hope this helps others, here is what I did:
// This is your form...
form name=img1 method=post action=done.php target=box
enctype=multipart/form-data
input type=file name=img1 size=25
brbr
input type=submit name=Submit value=save
nbsp;nbsp;
input
Not sure what you're tring to achieve, but that only checks the file's
name. You might want to use file (man 1 file) to verify that it actually
is a JPEG, since people can put malicious data into a file named xxx.jpg
and perhaps fool IE into doing bad things.
miguel
On Wed, 17 Apr 2002, jas
Could you explain that a little more?
thanks,
Jas
Miguel Cruz [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Not sure what you're tring to achieve, but that only checks the file's
name. You might want to use file (man 1 file) to verify that it actually
is a
Unix systems have a program called 'file' that will look inside a file to
try to figure out what sort of data it contains, regardless of how it's
named. Generally it just looks at the first few bytes for a telltale
fingerprint but there are all sorts of rules for different file types.
This is
Ok, I understand how it works at least, however I am not familiar enough
with unix systems to know how to effectively use that command. Could you
give me an example in code so I can mess around with it?
Thanks again,
Jas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On Thursday 18 April 2002 15:37, Jas wrote:
Ok, I understand how it works at least, however I am not familiar enough
with unix systems to know how to effectively use that command. Could you
give me an example in code so I can mess around with it?
Probably easier to just use the
On Thu, 18 Apr 2002, Miguel Cruz wrote:
} Not sure what you're tring to achieve, but that only checks the file's
} name. You might want to use file (man 1 file) to verify that it actually
} is a JPEG, since people can put malicious data into a file named xxx.jpg
} and perhaps fool IE into doing
8 matches
Mail list logo