Steps to create a new document folder in Briefcase and upload files from CLI
Steps to create a new document folder in Briefcase and upload files from CLI
- This article is a Work in Progress, and may be unfinished or missing sections.
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
- You can see a complete SOAP information in the next Wiki article.