I put insert files submission on the form with others input rows, but several time submits i can not make any difference because the picture names changed into numeric file that hasn't relate with id or others variables. So i can which picture related with each data. Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Look for the line in your processor.php that looks like this:
$field_1_filename = "file_1_".date("sihdmY").substr($_FILES['field_1']['name'],strlen($_FILES['field_1']['name'])-4);
The $field_1_filename variable must match the variable used to upload your file. Change the line to look like this:
$field_1_filename = "$_FILES['field_1']['name'];
This will not protect agains duplicate filenames unless you do something like this:
$field_1_filename = "$_FILES['field_1']['name'].".".date("sihdmY");
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The $field_1_filename variable must match the variable used to upload your file. Change the line to look like this:
$field_1_filename = $_FILES['field_1']['name'];
This will not protect agains duplicate filenames unless you do something like this:
$field_1_filename = $_FILES['field_1']['name'].".".date("sihdmY");
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear admin,
I put insert files submission on the form with others input rows, but several time submits i can not make any difference because the picture names changed into numeric file that hasn't relate with id or others variables. So i can which picture related with each data. Thanks
Look for the line in your processor.php that looks like this:
$field_1_filename = "file_1_".date("sihdmY").substr($_FILES['field_1']['name'],strlen($_FILES['field_1']['name'])-4);
The $field_1_filename variable must match the variable used to upload your file. Change the line to look like this:
$field_1_filename = "$_FILES['field_1']['name'];
This will not protect agains duplicate filenames unless you do something like this:
$field_1_filename = "$_FILES['field_1']['name'].".".date("sihdmY");
Cut and paste error:
Use the following.
The $field_1_filename variable must match the variable used to upload your file. Change the line to look like this:
$field_1_filename = $_FILES['field_1']['name'];
This will not protect agains duplicate filenames unless you do something like this:
$field_1_filename = $_FILES['field_1']['name'].".".date("sihdmY");