• My client needs to allow customers to send photos via his contact form.

    I set the form up a few years ago following the guidelines on this page: https://contactform7.com/file-uploading-and-attachment/

    Recently, he’s been getting complaints from people who can’t send images from their iPhones.

    The error is “You are not allowed to send files of this type”, and occurs using iOS Safari, Chrome, and Firefox.

    I’ve tested it, and it seems that the iOS native file format HEIC is to blame.

    That format is not listed in the CF7 upload guide – I added it to the acceptable file list, but no luck.

    filetypes:png|jpg|jpeg|pdf|gif|zip|heic

    Is there a solution for this?

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try adding heif to the list.

    Thread Starter richard.miller

    (@richardmiller-1)

    Added heif.

    Same result, same error message.

    I’ve added both heic and heif to the site using the “WP Add Mime Types” plugin. This has not helped either.

    Thread Starter richard.miller

    (@richardmiller-1)

    Should I draw the conclusion that people uploading photos from iOS are just out of luck?!

    I was wondering if you have still have this problem. You can set the structure of your images on you iOS device at Settings > Camera > Structures.

    If you choose ‘High Efficiency’ it’s set to:

    • HEIF (for images)
    • HEVC (for video)

    If you choose ‘Most compatible’ it’s set to

    • JPEG (for images)
    • H.264 (for video)

    Mine is default on ‘High Efficiency’. But when I upload an image from my phone via CF7 it’s send as JPEG.

    I read on the website of Apple:

    When you share media using other methods, such as AirDrop, Messages or email, it may be shared in a more compatible format, such as JPEG or H.264, depending on whether the receiving device supports the newer media format.

    https://support.apple.com/en-gb/HT207022

    So maybe this is fixed in the latest iOS.

    • This reply was modified 4 years, 5 months ago by Cicero83.

    Same problem here, both settings ‘High Efficiency’ and ‘Most compatible’ results in an upload error. Images received from WhatsApp for example do upload successfully from the same iPhone.

    kittycat100

    (@kittycat100)

    Has anyone got a solution to this? I am experiencing the same issue with iphone images and videos. THanks

    msivakum

    (@msivakum)

    Hey guys,

    I had the same issue. It is working for me now. The problem I had was the size limit. In my application the max upload size is 2MB. My iphone pictures were minimum 3 MB. so I got the error in file upload. I tried uploading an image less than 2 MB and voila! it worked. So try checking that as well! Just a suggestion ??

    Thanks!

    The problem still exist. When select photo directly from photo gallery on iOS upload function will not work on contact form7. As it seems not detecting file type.

    The work around is to have photo save to file and upload it that way.

    Yes HEIC file type is setup and works without issue in desktop. Issue only exist on iOS.

    I am having the same problem. I can upload heic files using a desktop browser, but not using safari on iOS. I have tested with the same 4mb heic file.

    I have added the heic and heif file types in the form shortcode:

    Attach a Photo (Size limit: 10mb)
    [file photo limit:10mb filetypes:heic|heif|jpg|jpeg|png]

    Once I supmit the form, I can see it trying to upload (spinning icon) then I get an error message: ‘One or more fields have an error. Please check and try again’.

    I need this upload form to be foolproof, our users are not going to know what a heic is and just want to upload a photo.

    Has anybody found the solution?

    castorsson

    (@castorsson)

    Any news on this issue?
    I can’t upload a picture taken from my Iphone, I’ve added the formats HEIF, HEIC besides jpg, png, gif, jpeg.
    BR
    Christer

    castorsson

    (@castorsson)

    Fixed it with increasing the allowed filesize in WP-config.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Form won’t upload HEIC format from iPhone’ is closed to new replies.