I have the form code file. That does an
Which leads me to a move the upload file function:
So where is all this stuff supposed to go?
<form enctype="multipart/form-data" action="uploader.php" method="POST">
Which leads me to uploader.php:// Where the file is going to be placed
$target_path = "uploads/";
/* Add the original filename to our target path.
Result is "uploads/filename.extension" */
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
$_FILES['uploadedfile']['tmp_name'];
Which leads me to a move the upload file function:
$target_path = "uploads/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']).
" has been uploaded";
} else{
echo "There was an error uploading the file, please try again!";
}
So where is all this stuff supposed to go?
Hi fbc,
You just need to add enctype="multipart/form-data" in the 'Form tag attachment' field on the General tab; put something like
Everything else is handled for you by ChronoForms.
Bob
You just need to add enctype="multipart/form-data" in the 'Form tag attachment' field on the General tab; put something like
<input type="file" name="field_name" />
somewhere in your form html and complete the four fields in the File Upload tab.
Everything else is handled for you by ChronoForms.
Bob
This topic is locked and no more replies can be posted.