Hi,
i want to take an uploaded file from a form and insert it into a database. im using a longblob datatype and i also need it to be passed along a few steps past some pages before it is inserted. i have tried it already just to simply upload it but its not working! what do i do?
here is the code right now that i am using to upload it to a directory:
<?php
$uploaddir = '/uploads';
print "<pre>";
if (move_uploaded_file($FILES['pictureupload']['tmp_name'], $uploaddir . $FILES['pictureupload']['name'])) {
print "File is valid, and was successfully uploaded.";
} else {
print "Error Uploading file";
}
?>
and this is a second one i am using for another image:
<?php
$uploaddir = '/uploads';
print "<pre>";
if (move_uploaded_file($FILES['signatureupload']['tmp_name'], $uploaddir . $FILES['signatureupload']['name'])) {
print "File is valid, and was successfully uploaded.";
} else {
print "Error Uploading File";
}
?>