How to create Favicon.ico
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:)
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!
Favicon sent:) One question more, when in iOS safari, sending shortcut to homescreen, it will use Rocket.Chat icon, is it expected behaviour?
@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
Hmm but I used chrome:(
@tuudik OS X, Windows or Linux?
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"
Windows 8.1 Pro
I have the same problem with .ico extension. It says : Invalid file type : image/vnd.microsoft.icon
@LeCoupa Which Rocket.Chat version are you using?
I just used one week ago.
curl -L https://rocket.chat/releases/latest/download -o rocket.chat.tgz
@LeCoupa can you go to /api/info to get the exact version you are using?
@rodrigogs : "version": "0.15.0"
@LeCoupa which browser and OS are you using? I can't reproduce your problem
@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
@LeCoupa My latest commit solve your problem https://github.com/RocketChat/Rocket.Chat/commit/d7900901ead676e12adfccbc6344adf0054adeec?ts=2
Can we add mime types for Apple Keynote, Pages and Numbers? I am unable to upload those.
@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.
Well. on File uploads... there's a white list of mime types too ... I added those, yet I still can't upload
@alvarow can you create a new issue with more details about your problem?
sure can.