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."; }
?>
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 in 7 days
4.8 (19 reviews)
3.6
3.6
5 freelancers are bidding on average $38 USD for this job
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.
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 have any ideas that I will create or design the site based on them.
I am also well versed in making responsive pages in html5 so you can use them anywhere on your mobile or desktop.
I do website design work or developed as: -
Word PRess
Php
Html5 (web and responsive page design)
PSD in HTML
Woo commercial site
I can start the job after closing the deal. Waiting for the positive response.
Thank you and greetings
Manu R.