Download an image or a photo
GCA
-
GCA -
GCA -
<form action="/votre_script_de_telechargement" method="POST" enctype="multipart/form-data">
<input type="file" name="photo" accept="image/*" />
<button type="submit">Télécharger la photo</button>
</form>
2 answers
-
Hello,
Everything is explained here https://www.commentcamarche.net/faq/889-php-upload-de-fichiers
If you need help with a specific point, feel free to ask. -
Hi, it will also be essential to check the file extensions, and also to anticipate the case where malicious users might use a double extension. If you don't do this, internet users could upload anything to your site and cause problems.
I also recommend this tutorial:
http://fr.openclassrooms.com/informatique/cours/upload-de-fichiers-par-formulaire
Have a good day
--
׺°"~'"°º×]|I{*------» LÖBÖTÖ «------*}I|[׺°"~'"°º×