John Davidson

How don't direct use $_FILES Superglobal in PHP?

0 comments
Message:


I'm looking for an alternative to get the data inside the $_FILES due to a codacy issue



I don't know how to don't use directly the superglobals.


I can't use filter_input like I did for resolve the same issue with $_POST


Below this, my form :


<form class="d-flex flex-column" method="post" action="/image/update/99/trick/144" enctype="multipart/form-data">
<input type="file" name="newImg">
<button type="submit">Modifier l'image</button>
</form>


My Answer:
you doing today?

Rate this post

4 of 5 based on 6297 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us