Hi Mpeglitis,

>> I'm trying to implement a file upload on a website so people can send us
>> files of their work and I'm having a fantastic success with text files.
>> The problem comes when I try to upload binary files such as zip or mp3,
>> when I get the typical file attack error mesage from the script, in
>> other words, the is_uploaded_file() function does not recognise the file
>> correctly.

Mpeglitis> I do have the same problem on my WinNT box. I'm using
Mpeglitis> php to store the file in a LargeBlob field in my mysql database.
Mpeglitis> Text files upload successfully but binary files don't ( the Insert
Mpeglitis> query fails ). If someone knows something let us know.

well, is your form enctype="multipart/mixed" and method="post" ?

did you use open($file, "rb"); (b is important 4 binary)

did you use addslashes when storing the file in mysql ?

well, you ought to specify the problem more exactly...

-----------------------
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to