/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// $_FILES array // $_FILES['field_name']['name'] = filename // $_FILES['field_name']['type'] = mime type, if provided by browser // $_FILES['field_name']['size'] = file size in bytes // $_FILES['field_name']['tmp_name'] = temp file name / location // $_FILES['field_name']['error'] = error code // do something with $file }