mnoGoSearch mime type problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shrini

    mnoGoSearch mime type problem

    Friends.

    I am doing a Document Management System.
    All the uploaded docs are stored in a directory, but the names ae
    encrypted
    as a long text without any extension.

    I use mnoGosearch. To Do search within files and documents,
    All mime types should be specified in indexer.conf.

    As i have files with encrypted names and no extensions,
    They are not indexed by mnoGoSearch.

    How to make mnogosearch to detemine the filetype automatically.?

    Note: the command "file asajhfjsdiufhjk dfhskjf34287jnj k" gives the
    proper file type of it.
    eventhough the file name is encryted.

    Thanks,
    T.Shrinivasan.

  • flamer die.spam@hotmail.com

    #2
    Re: mnoGoSearch mime type problem

    Should be able to read the MIME type of the file..

    Forget what the function is but searching for 'mime type' on php.net
    should give you the base, then you have to integrate it into your
    search.

    Flamer.

    shrini wrote:
    Friends.
    >
    I am doing a Document Management System.
    All the uploaded docs are stored in a directory, but the names ae
    encrypted
    as a long text without any extension.
    >
    I use mnoGosearch. To Do search within files and documents,
    All mime types should be specified in indexer.conf.
    >
    As i have files with encrypted names and no extensions,
    They are not indexed by mnoGoSearch.
    >
    How to make mnogosearch to detemine the filetype automatically.?
    >
    Note: the command "file asajhfjsdiufhjk dfhskjf34287jnj k" gives the
    proper file type of it.
    eventhough the file name is encryted.
    >
    Thanks,
    T.Shrinivasan.

    Comment

    • shrini

      #3
      Re: mnoGoSearch mime type problem


      flamer die.spam@hotmai l.com wrote:
      Should be able to read the MIME type of the file..
      >
      Forget what the function is but searching for 'mime type' on php.net
      should give you the base, then you have to integrate it into your
      search.
      >
      Flamer.
      >

      Thanks Flamer.

      But, I store the mime type of each file in MySQL database
      before encrypting the file names.

      How to integrate the database with mnogosearch configuration file?

      I can even use php to get file type.

      Thanks for your immediate reply.

      dear,
      T.Shrinivasan.

      Comment

      Working...