andig / carddav2fb

Download CardDAV VCards and upload as phonebook to AVM FRITZ!Box
63 stars 19 forks source link

Images from KonsoleH (Hetzner) cannot be uploaded #200

Closed blacksenator closed 4 years ago

blacksenator commented 4 years ago

Embedded Images uploaded from Hetzners KonsoleH (CardDAV Version 3.0) are declared as

PHOTO;ENCODING=b;TYPE=image/jpeg:[base64-data]

instead of

PHOTO;TYPE=JPEG;ENCODING=b:[base64-data]

Therefore, checks for TYPE == 'JPEG' are failing and image data are not decoded.