simple html form (takephoto) in iOS

Lengkap Disiarkan 2 tahun lepas Dibayar semasa penghantaran
Lengkap Dibayar semasa penghantaran

There is an issue into the new iOS versions that uses HEIC. iOS does not allow upload a simple image using simple html forms, with the take photo option. This job consists in fix the simple following code when using take Phone into the iOS, In order that can be possible upload the image using the take photo option.

Can be used javascript to fix it.

Example: very simple HTML form:

<!DOCTYPE html>

<html>

<body>

<form action="[login to view URL]" method="post" enctype="multipart/form-data">

Select image to upload: <input type="file" accept=".jpg, .jpeg, .png, .pdf, .heic" name="fileToUpload" id="fileToUpload">

<input type="submit" value="Upload Image" name="submit">

</form>

</body>

</html>

simple server side in PHP

<?php

ini_set('display_errors', 1);

ini_set('display_startup_errors', 1);

error_reporting(E_ALL); print_r($_POST);

print_r($_FILES); $target_dir = "uploads/";

$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);

$uploadOk = 1;

$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));

//

if (file_exists($target_file)) { echo "Sorry, file already exists."; $uploadOk = 0; }

// Check if $uploadOk is set to 0 by an error

if ($uploadOk == 0) {

echo "Sorry, your file was not uploaded.";

} else {

if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) {

echo "The file ". basename( $_FILES["fileToUpload"]["name"]). " has been uploaded.";

} else { echo "Sorry, there was an error uploading your file."; }

?>

PHP JavaScript HTML iPhone CSS

ID Projek: #32684749

Tentang projek

5 cadangan Projek jarak jauh Aktif 2 tahun lepas

Dianugerahkan kepada:

Kavita9166

Hello I am a good fit for this Job I have lots of experience in this sector. I have worked for many Client before on other platforms. Thank you in advance for your time and consideration. Thanks Rajesh Jangid

$30 USD dalam 7 hari
(19 Ulasan)
3.6

5 pekerja bebas membida secara purata $38 untuk pekerjaan ini

saqibkafeel23

hello i am interested to fix this issue in one hour for 100 USD , i have 10 years experience in mobile application development , you can start chat with me , thanks.

$100 USD dalam 7 hari
(13 Ulasan)
5.1
manusharma2992

Hello, I saw the details of the job as you wantsimple html form (takephoto) in iOS I am the expert of all platforms to create the same or similar site from scratch. You can show me any Reference site you like IF you h Lagi

$20 USD dalam sehari
(19 Ulasan)
4.5