Download an image or a photo

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 réponses

Ysabe_l Posted messages 11923 Registration date   Status Contributeur Last intervention   277
 
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.
1
GCA
 
Thanks, I'm going to take a look! :p
1
Anonymous user
 
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|[׺°"~'"°º×
0
GCA
 
Thank you, I'm going to go check that out ;)
0