Bonjour à tous,
J'ai un formulaire PHP permettant aux utilisateurs de m'envoyer des fichiers.
Lorsqu'ils choisissent un fichier, ils n'ont plus ensuite la possibilité de le supprimer si finalement ils décident de ne pas m'envoyer de fichier.
Existe-il un solution "simple" en JavaScript pour supprimer un ficher ?
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 <div style="text-align: center"> <div class="picto1"><label for="cv" class="bouton">JOINDRE VOTRE CV <br/><span class="fichier">(PDF, JPG, DOC | max. 1 Mo) :</span></label> <input type="hidden" name="MAX_FILE_SIZE" value="1048576" /><input type="file" name="cv" id="cv" /></div> <div class="picto2"><label for="lettre" class="bouton">JOINDRE VOTRE LETTRE DE MOTIVATION <br /><span class="fichier">(PDF, JPG, DOC | max. 1 Mo) :</span></label> <input type="hidden" name="MAX_FILE_SIZE" value="1048576" /><input type="file" name="lettre" id="lettre" /></div> <div class="picto3"><label for="photo" class="bouton">JOINDRE VOTRE PHOTO <br /><span class="fichier">(JPG | max. 512 Ko) :</span></label> <input type="hidden" name="MAX_FILE_SIZE" value="524288" /><input type="file" name="photo" id="photo" /></div> <div class="picto4"><input style="width: 265px; height: 24px; font-weight: 700; font-family: 'Open Sans Condensed', Arial NArrow, sans; font-size: 12pt;" type="submit" name="submit" value="ENVOYER" /></div></div>
Merci pour votre aide![]()
Partager