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

import-from-git should support autodetection of doc type and create a document with that type #18

Open
d4r3topk opened this Issue Aug 9, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@d4r3topk

d4r3topk commented Aug 9, 2015

Currently - any file, be it .pike or .png, turns into a Document in sTeam with import-from-git script.

Need to auto detect type, this can be done in create_container, create_document functions.

@eMBee

This comment has been minimized.

Show comment
Hide comment
@eMBee

eMBee Sep 5, 2015

actually, the mime-type needs to be detected and set.
the best way to do that is the 'file' command.

ideally this would be done by writing a pike module that imports the magic database used by file. such a module could then be contributed to pike itself.

alternatively a sTeam service that calls the file command and returns the result would work.

finally, the simplest solution is probably to call file from the import script.

eMBee commented Sep 5, 2015

actually, the mime-type needs to be detected and set.
the best way to do that is the 'file' command.

ideally this would be done by writing a pike module that imports the magic database used by file. such a module could then be contributed to pike itself.

alternatively a sTeam service that calls the file command and returns the result would work.

finally, the simplest solution is probably to call file from the import script.

@ajinkya007 ajinkya007 self-assigned this Apr 10, 2016

@ajinkya007

This comment has been minimized.

Show comment
Hide comment
@ajinkya007

ajinkya007 Jun 3, 2016

Member

#45 Fixes this.

Member

ajinkya007 commented Jun 3, 2016

#45 Fixes this.

ajinkya007 added a commit that referenced this issue Aug 11, 2016

Merge pull request #18 from ajinkya007/Issue#79
Issue#79 Add support to create file from the command-line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment