Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error using addoc on CLI
#6
(11-10-2012, 04:52 AM)ericsmythe Wrote: I do not have the failure to delete issue with my clean db.
One issue I have noticed is that when using adddoc from the shell, is that the documents do not have a "View Online" option as they do when I add them via the GUI.
Is this a known issue?
Historically each version of a document has a filetype and a mimetype. The filetype is basically the extension of the file you uploaded or inserted with adddoc. So it depends on the filename. Whether a version can be viewed online or not depends on the filetype and not on the mimetype.
adddoc doesn't set the filetype but only the mimetype. I should fix this.
A much cleaner solution would be to get rid of the filetype and stick with the mimetype only.

(11-10-2012, 04:52 AM)ericsmythe Wrote: What are the other tasks that are "safe" to perform on the commandline?
To be honest, none of the commandline tools are officially safe, but adddoc is one of them that is around for some time and there weren't
many complains about it.

The indexer.php is safe because it is just a thin layer above the LetoDMS Indexer class.

Uwe
Reply


Messages In This Thread
Error using addoc on CLI - by ericsmythe - 11-09-2012, 09:41 AM

Forum Jump:


Users browsing this thread: