i can get the filename, filesize and filetype but i cant get the file contents this is my code
$handle = fopen ($_FILES['docData']['tmp_name'], "r"
;
$data = addslashes( fread ($handle, filesize ($_FILES['docData']['tmp_name'])));
$docType = $_FILES['docData']['type'];
$docName = $_FILES['docData']['name'];
$docSize = $_FILES['docData']['size'];
fclose ($handle);
i echo out all the info and this is what shows up
data []
type [application/octet-stream]
name [news_tvChooseForm.php]
size = [1585]
what am i doing wrong that i cannot get the data??
any help would be greatly appreciated thanks
mball
$handle = fopen ($_FILES['docData']['tmp_name'], "r"
$data = addslashes( fread ($handle, filesize ($_FILES['docData']['tmp_name'])));
$docType = $_FILES['docData']['type'];
$docName = $_FILES['docData']['name'];
$docSize = $_FILES['docData']['size'];
fclose ($handle);
i echo out all the info and this is what shows up
data []
type [application/octet-stream]
name [news_tvChooseForm.php]
size = [1585]
what am i doing wrong that i cannot get the data??
any help would be greatly appreciated thanks
mball