We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
get_object_info
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
PairTreeFileSystemStore
magic.from_buffer(open(file_path).read(1048576), mime=True)
/etc/magic
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
Seems like a deployment/server issue.
claeyswo
No branches or pull requests
Concerning use of mimetype:
The text was updated successfully, but these errors were encountered: