Can I attach data gathered by a form to a file that is being uploaded?
- by Jacob
I need customers to upload files to my website and I want to gather their name or company name and attach it to the file name or create a folder on the server with that as the name so we can keep the files organized. Using PHP to upload file
PHP:
if(isset($_POST['submit'])){
$target = "upload/";
$file_name = $_FILES['file']['name'];
…