OK this one has me a little stumped...
I upload files with the following script...
print_header("Uploading Document");
if(!isset($userfile))
upload_failed("Document was not found");
if(!file_exists($userfile))
upload_failed("Document was not uploaded");
$fp = fopen($userfile, "r");
if(!$fp)
upload_failed("Cannot open uploaded documentile");
$content = fread($fp, $userfile_size);
fclose($fp);
unlink($userfile);
$content=AddSlashes($content);
Files with mime types starting with "text" go up fine, others seem to get themselves truncated to around 1k...
Any ideas?
Cheers,
Bret