You must include a parameter enctype=“multipart/form-data” in your form element, otherwise it will not submit the file as a file but only the filename.
You must include a parameter enctype=“multipart/form-data” in your form element, otherwise it will not submit the file as a file but only the filename.