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

Update documentation #23

Open
cahytinne opened this issue Aug 22, 2017 · 2 comments
Open

Update documentation #23

cahytinne opened this issue Aug 22, 2017 · 2 comments
Assignees
Labels

Comments

@cahytinne
Copy link
Contributor

Concerning use of mimetype:

Mimetype can now be served to the client using the function get_object_info that must be provided by the stores.

content_type = collection.object_store.get_object_info(container_key, object_key)['mime']

In case of the PairTreeFileSystemStore, the
magic.from_buffer(open(file_path).read(1048576), mime=True) cannot guess Microsoft mimetypes. This can be solved by adding configuration to the /etc/magic file as described in following link
https://serverfault.com/questions/338087/making-libmagic-file-detect-docx-files/377792#377792

@cahytinne cahytinne added this to the 0.3.1 milestone Aug 22, 2017
@koenedaele koenedaele removed this from the 0.3.1 milestone Oct 18, 2018
@koenedaele koenedaele removed their assignment Oct 18, 2018
@Wim-De-Clercq
Copy link
Contributor

The link mentioned on serverfault is from 2012.
This is the current latest version of that website: https://fossies.org/linux/file/magic/Magdir/msooxml

@claeyswo
Copy link
Member

Seems like a deployment/server issue.

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

No branches or pull requests

4 participants