Closed singchan closed 9 years ago
Hi SingChan ;)
Well, you have both ways to specify it:
either
{
mimetypes: ["text/html" (, ...) ],
...
}
or
{
mimetype: "text/html",
...
}
Same with extension
and extensions
.
This behavior stick to the File Picker API.
Hello
When I call exportFile
with mimetypes: ["text/html"]
it does not add the ".html" in the input text field
Yes, in case of exportFile(), only one mime type is possible so it's:
{mimetype: 'text/html'}
Don't hesitate to consult Ink documentation as CE stick to their API.
PS: in general, you can check what option is currently supported by checking the different methods options under the ce.core.model.api package in the sources...
Is everything working fine ? Can we close this ticket as a non-bug ?
yeah thx :+1: :trophy:
Hello
In the readme I see
{ mimetype: "text/html" }
whereas in the code it seems to bemimetypes
which would be an array.. What is the correct way to specify a mime type?Same questions for the extension :)