Server: "Download picture" downloaded file has a wrong .vcf extension (Firefox only)

Created on 24 Mar 2020  Â·  14Comments  Â·  Source: nextcloud/server

To Reproduce
Steps to reproduce the behavior:

  1. Go to any contact
  2. Click on the avatar
  3. Open the 3-dot menu in the top right and click "Download picture"
  4. Open the downloaded file

Expected behavior
The picture is opened.

Actual behavior
Because the file is called Some ID.vcf, it is opened with the text editor and just shows jumbled characters.
Changing the extension to .jpg fixes the issue.

Happens with latest master and happened some weeks before too.

1. to develop bug dav good first issue

All 14 comments

Peek 24-03-2020 14-48

Heh, indeed works with Chromium for me as well. Seems to be a Firefox issue as I can reproduce it on my personal instance, the company instance, as well as on local dev env.

@skjnldsv how should we move forward then – transfer the issue to server, loop someone else it, or anything else?

I guess adding the filename in the Content-Disposition header should work

@skjnldsv Hi , anyone working on this?

Nope, go for it @deepank120896 :)
Welcome!

Is this resolved?

Is this resolved?

If it would have been solved the issue ticket status would be "closed" 😉

Alrighty, I would like to take a stab at it then.

@sarkisben sure! :)
Feel free to dive into it!
We're available in the contacts public channel if you have questions https://cloud.nextcloud.com/call/wx2oqhpy

Is it preferred we save the photo as Some ID.png or can it just be ContactPhoto.png?

@skjnldsv

Is it preferred we save the photo as Some ID.png or can it just be ContactPhoto.png?

I would use the contact filename and use the correct extension (can be png, svg, jpeg... etc)

Was this page helpful?
0 / 5 - 0 ratings