26 Jun 2023 • 1 min read fix empty $_FILES via form submission attribute "enctype" is required if a <form> is to submit a file. Photo by Kelly Sikkema / Unsplash reference Key Code <form action="" enctype="multipart/form-data"> </form>