I have a big problem that is quite strange, I have a input type="file"
on my website, in which users can upload a photo of a document. What happens to me is that sometimes from a mobile, when using the input
to upload a photo from the camera, sometimes it is uploaded correctly and sometimes not.
The problem is not when completing form
and uploading the document to the server, but at the time of selecting the file and leaving it within input
. When I make the photo and I accept / send, instead of putting the name of the file in input
, I refresh the page, I leave the small code with input
.
<p>
<form id="carga_archivo" name="carga_archivo" enctype="multipart/form-data" action="uploader.php" method="POST" style="padding: 0; margin-top: 20px;">
<input type="file" id="file-input" name="uploadedfile">
<input type="text" name="id" value="<?php echo $row['id']; ?>" style="display: none;">
<input id="albaran" name="albaran" type="number" placeholder="Nº de Albarán" style="text-align: center; height: 50px;" required>
<input type="submit" value="SUBIR Y COMPLETAR AVISO" style="background:#1e81e6; color:white;font-weight: bold;height: 45px;" />
</form>
</p>