Steps to create a new document folder in Briefcase and upload files from CLI

Revision as of 09:58, 13 July 2015 by Jorge de la Cruz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Steps to create a new document folder in Briefcase and upload files from CLI

   KB 21902        Last updated on 2015-07-13  




0.00
(0 votes)

Purpose

How to create a folder in user's Briefcase and upload pdf,execl,doc and other files on that folder.

Resolution

  • Create a new document folder "NewDocs" in user's Briefcase:-
zmmailbox -z -m USER@DOMAIN.COM cf --view document /NewDocs
  • Upload files on Briefcase folder from local filesystem:-
zmmailbox -z -m USERNAME@YOURDOMAIN.COM postRestURL /NewDocs/"FILENAME" /<LOCAL-PATH-OF-FILE>/"FILENAME"

Above command will used to upload files in Briefcase, but it will not give you document preview in webclient. To show document preview in webclient you have to define "--contentType" with postRestURL during document upload command.

Example

  • A .doc file:
zmmailbox -z -m USERNAME@YOURDOMAIN.COM postRestURL --contentType application/msword /NewDocs/"FILENAME.doc" /tmp/"FILENAME.doc"
  • A .pdf file:
zmmailbox -z -m USERNAME@YOURDOMAIN.COM postRestURL --contentType application/pdf /NewDocs/"FILENAME.pdf" /tmp/"FILENAME.pdf"
  • A .xls file:
zmmailbox -z -m USERNAME@YOURDOMAIN.COM postRestURL --contentType application/excel /NewDocs/"FILENAME.xls" /tmp/"FILENAME.xls"

Additional Content


Verified Against: Zimbra Collaboration 8.6, 8.5, 8.0 Date Created: 04/28/2015
Article ID: https://wiki.zimbra.com/index.php?title=Steps_to_create_a_new_document_folder_in_Briefcase_and_upload_files_from_CLI Date Modified: 2015-07-13



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Wiki/KB reviewed by SME1 SME2 Copyeditor Last edit by Jorge de la Cruz
Jump to: navigation, search