Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

How to create Favicon.ico

Open tuudik opened this issue 10 years ago • 34 comments

Hi,

I have tried creating favicon with GIMP. I have three different layers with icon sizes: 16, 32, 48.

Everytime I try to upload, error message Invalig File Type appears. Nothing in Debug log.

Help pls:)

tuudik avatar Jan 13 '16 11:01 tuudik

Hey @tuudik we have identified what we think is a problem on our File Upload. Would you mind sending us the file you are creating to [email protected], so we can improve and fix this for everyone else? Thanks!

marceloschmidt avatar Jan 13 '16 13:01 marceloschmidt

Favicon sent:) One question more, when in iOS safari, sending shortcut to homescreen, it will use Rocket.Chat icon, is it expected behaviour?

tuudik avatar Jan 13 '16 13:01 tuudik

@tuudik there is a difference between browsers to detect the file mime type, if you try to upload your icon using chrome will work.

I fixed this problem, watch this PR #1893

rodrigok avatar Jan 13 '16 16:01 rodrigok

Hmm but I used chrome:(

tuudik avatar Jan 13 '16 16:01 tuudik

@tuudik OS X, Windows or Linux?

rodrigok avatar Jan 13 '16 16:01 rodrigok

Hello, I had the same problem yesterday using Opera (Chrome based engine) and Windows 7 pro. The browser identified correctly the file as a .ico type, but the chat instance would not accept it due to "Invalid file type"

haceru avatar Jan 13 '16 16:01 haceru

Windows 8.1 Pro

tuudik avatar Jan 13 '16 19:01 tuudik

I have the same problem with .ico extension. It says : Invalid file type : image/vnd.microsoft.icon

LeCoupa avatar Jan 27 '16 10:01 LeCoupa

@LeCoupa Which Rocket.Chat version are you using?

rodrigok avatar Jan 27 '16 11:01 rodrigok

I just used one week ago.

curl -L https://rocket.chat/releases/latest/download -o rocket.chat.tgz

LeCoupa avatar Jan 27 '16 11:01 LeCoupa

@LeCoupa can you go to /api/info to get the exact version you are using?

rodrigok avatar Jan 27 '16 11:01 rodrigok

@rodrigogs : "version": "0.15.0"

LeCoupa avatar Jan 27 '16 16:01 LeCoupa

@LeCoupa which browser and OS are you using? I can't reproduce your problem

rodrigok avatar Jan 27 '16 19:01 rodrigok

@LeCoupa Ok, the problem is that this mime type doesn't have extension in the library that we are using https://github.com/jshttp/mime-db/blob/master/db.json?ts=2#L5522-L5525

I will try to solve that

rodrigok avatar Jan 27 '16 19:01 rodrigok

@LeCoupa My latest commit solve your problem https://github.com/RocketChat/Rocket.Chat/commit/d7900901ead676e12adfccbc6344adf0054adeec?ts=2

rodrigok avatar Jan 27 '16 19:01 rodrigok

Can we add mime types for Apple Keynote, Pages and Numbers? I am unable to upload those.

alvarow avatar Jan 27 '16 21:01 alvarow

@alvarow for favicon? :smile_cat:

This verification is only for assets like favicon, logo, etc.

For normal uploads you can change the list of acceptable file types for upload in admin area under "File Uploads" section.

rodrigok avatar Jan 27 '16 21:01 rodrigok

Well. on File uploads... there's a white list of mime types too ... I added those, yet I still can't upload

alvarow avatar Jan 27 '16 22:01 alvarow

@alvarow can you create a new issue with more details about your problem?

rodrigok avatar Jan 28 '16 00:01 rodrigok

sure can.

alvarow avatar Jan 28 '16 15:01 alvarow