Rocket.chat: error when uploading favicon

Created on 25 Apr 2017  路  19Comments  路  Source: RocketChat/Rocket.Chat

Rocket.Chat Version: 0.55.1
Running Instances: 1
DB Replicaset OpLog:
Node Version:

I just installed the docker image to test this out, but when I try and upload a favicon I get an error

Invalid file type
image/vnd.microsoft.icon

screen shot 2017-04-25 at 10 35 53 am
this should be a valid favicon format

FYI I used this website to generate the icon incase you want to test it

file sharing bug

Most helpful comment

I am getting this error as well. "Invalid file type image/x-icon"

All 19 comments

Hi @MartinSchoeler .
Why this feature is not working?
How to fix it ?

hi,

we also have the same issue with uploading asset files we cannot upload it, saying "Invalid file type"
plus also we have problem deleting the files for favicon.png (64x64/96x96,128x128).

asking assistance anyone have the same problem?

It is an issue. I cannot upload a favicon too

any idea how to solve this problem?

Indeed, us as well on commit 65e06c283226ddb56f2d3a592dfc31df09115421. Here's a file I'm having trouble with: rocket-chat-discourse.ico.gz

Created using:

convert rocket-chat-discourse.png -define icon:auto-resize=128,64,48,32,16 rocket-chat-discourse.ico

I have the same issue as well

we have too!

I'm facing the same issue.
Rocket chat version: 0.61.0

Is this solved yet?

I have the same issue
RocketChat v 0.62.2

I'm running 0.62.1 and facing the exact same issue. Nothing on logs.

You'll need to use another browser. I used Safari and it worked! I was able to set all of my .ico files. Crazy.

@jamescgalindo I've tested in Safari, Firefox and with the Desktop client. Problem persist.

Weird....I'm using Safari Version 11.1 (13605.1.33.1.2)
screen shot 2018-04-15 at 5 31 49 pm

I jumped back over to Chrome and all was good.

I was able to upload the favicon using the latest Firefox. So, the problem seems to be reduced to the desktop app and Safari < 11.1

I am getting this error as well. "Invalid file type image/x-icon"

Hello everyone,

I was getting this error and there is no real solution on the web.

The solution is:

  • Go to "Administration"
  • Enter "File Upload" section
  • Append the file type which you get error at the end of "Accepted Media Types" field

Screenshot is on the link:

https://hackerspace.ist/ico_problem_solution.png

Have a nice day!

I got same issue (File type invalid image/x-icon)...upload favicon.ico even though I added image/x-icon

File type invalid image/x-icon
image
Have tried multiple types of upload and image/x-icon added to File Upload.
Occurs in both client and web browser (Chrome, Firefox, IE, Edge)
Maybe something to do with programs/server/packages/rocketchat_assets.js not explicitly specifying?
mime.extensions['image/x-icon'] = ['ico'];

Was this page helpful?
0 / 5 - 0 ratings

Related issues

royalaid picture royalaid  路  3Comments

brendanheywood picture brendanheywood  路  3Comments

engelgabriel picture engelgabriel  路  3Comments

Buzzele picture Buzzele  路  3Comments

mattlin picture mattlin  路  3Comments