> Are you using Apache2? IIRC, there was a bug where data would get added > to the POST data, or something along those lines... > > What if you just look at the file with a regular text editor? Do you see > that data there after it's uploaded and written to the server, or does > it just appear into the data when it's fread()? > > ---John W. Holmes... John, when I open the file in a text editor I don't see the garbage, just the text. I have Apache 1.3.22 on my server. I'm not writing the contents to a file once uploaded to the server because I want to store it in a database field. The garbage is added to the DB just as it appears when I echo the variable to the screen after the file has been uploaded.
Also, I'm doing the fread() on the tmp_name after the file is uploaded, because I don't need the file once I read the contents into a variable. I was wondering if changing the "enctype" parameter in the <form> tag would make a difference (but I don't know what to change it to). Currently it's set to "multipart/form-data". Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php