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 answers

  1. Ysabe_l Posted messages 11950 Registration date   Status Contributor 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
    1. GCA
       
      Thanks, I'm going to take a look! :p
      1
  2. 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
    1. GCA
       
      Thank you, I'm going to go check that out ;)
      0