Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable upload of .sketch files #11387

Closed
thiesschneider opened this issue Jul 8, 2018 · 4 comments
Closed

How to enable upload of .sketch files #11387

thiesschneider opened this issue Jul 8, 2018 · 4 comments

Comments

@thiesschneider
Copy link

Hi,

which mediatype do I have to add to be able to upload .sketch files?

thx in advance!
thies

@tassoevan
Copy link
Contributor

I'm afraid Rocket.Chat relies on File API to determine the upload file type and this is a mistake, since is browser-dependent.
A ugly workaround for now is to clear the Accepted Media Types field in Administration > File Upload.

@TwizzyDizzy
Copy link

You should be able to allow .sketch files with the mime-type application/zip (which it is, actually). For details, see #7462.

If this doesn't solve your question, please get back to me.

Cheers (+close)
Thomas

@nerrehmit
Copy link

Hi @TwizzyDizzy
I tried uploading a .sketch file but it did not work.
application/zip,application/gzip,application/x-zip is allowed for upload.
If I rename the something.sketch to something.zip the upload works fine, but not with the ending .sketch. Any idea?
Tim

@TwizzyDizzy
Copy link

Hmmm... might still be an issue with the code to detect the mime-type. IIRC this is also solved differently in different browsers, so it might help to try it with a different browser (just for diagnostic purposes).

I'd suggest, though, to open a new issue, referencing the issue at hand as well as #7462.

Cheers
Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants