Forums

File attachement does not work when using iphone, ipad or other apple products.

steverahks 11 Dec, 2018
I have a form that has been working for some time, all attachments have been uploading correctly. Suddenly, anything submitted using an Apple product will not submit if there is an attachment. They do submit if an attachment is not included by the sender.

Anyone else having this issue? I believe I had this issue once before but I cannot find any posts relating to it.

The site is wehaulrvtransport.com

Thanks
healyhatman 12 Dec, 2018
I seem to recall reading something when someone else was having an identical problem and I think it's a problem with Apple.

In the "FAIL" section of the file upload action, try typing (DON'T COPY PASTE) something along the lines of this in a PHP action
echo "FILE ERROR: " . $_FILES['file_field_name']['error'];

Then if you have a look at http://php.net/manual/en/features.file-upload.errors.php you can match the error code.
healyhatman 12 Dec, 2018
Alternatively put this in a Custom Code action in the fail event.
<?php
if(!isset($_FILES["file_field_name"]["error"]) {
echo "The file could not be found under $_FILES";
}
else {

$error = $_FILES["identification"]["error"];
switch($error) {
case 0:
echo "There was no error - the file was uploaded successfully.";
break;
case 1:
echo "The uploaded file exceeded the upload_max_filesize in the server setttings";
break;
case 2:
echo "The uploaded file exceeded the max file size specified by the form";
break;
case 3:
echo "The uploaded file was only partially uploaded";
break;
case 4:
echo "No file was uploaded";
break;
case 6:
case 7:
case 8:
echo "Error code 6, 7, or 8."
break;
default:
echo "No valid error code was supplied, so your guess is as good as mine as to what's going on";
}
}
?>
This topic is locked and no more replies can be posted.