silexlabs / cloud-explorer

*this version is deprecated, see CloudExplorer2* File manager for your users cloud services such as dropbox, google drive and FTP
http://cloud-explorer.org
52 stars 23 forks source link

mimetype(s)? #43

Closed singchan closed 9 years ago

singchan commented 10 years ago

Hello

In the readme I see { mimetype: "text/html" } whereas in the code it seems to be mimetypes which would be an array.. What is the correct way to specify a mime type?

Same questions for the extension :)

zabojad commented 10 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.

lexoyo commented 10 years ago

Hello

When I call exportFile with mimetypes: ["text/html"] it does not add the ".html" in the input text field

screenshot 2014-09-27 17 25 00

zabojad commented 10 years ago

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.

zabojad commented 10 years ago

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...

zabojad commented 9 years ago

Is everything working fine ? Can we close this ticket as a non-bug ?

lexoyo commented 9 years ago

yeah thx :+1: :trophy: