Results 1 to 3 of 3

Thread: Zimlet to upload files to briefcase

Hybrid View

  1. #1
    Join Date
    Oct 2011
    Posts
    5
    Rep Power
    3

    Default Zimlet to upload files to briefcase

    Hello,

    what I want to do is to create a briefcase with a file template in it, the file should be on the server(a resource file in the zimlet I think) and then when a user uses the zimlet to create a briefcase it should contain the file.

    I didn't find any specs on this, is this possible?

  2. #2
    Join Date
    Oct 2009
    Location
    Tokyo
    Posts
    113
    Rep Power
    6

    Default

    I am not sure how you think to implement the function you mentioned with "Zimlet to upload files to briefcase".

    So I suggest that you look into
    Email Templates | Zimbra :: Gallery .
    And you better create the same zimlet for briefcase.

    I hope it will help you.

    If you still want to know how to upload files to briefcase,
    then you first post the file as multi part form data to "/service/upload" , and then send SOAP or JSON SaveDocumentRequest.
    You can get the details by hack the requests sent when you click file upload button in Briefcase with firebug or something.

  3. #3
    Join Date
    Oct 2011
    Posts
    5
    Rep Power
    3

    Default

    hi, thanks for your answer.

    Email template zimlet uses text copying from emails, so is not exactly what I need. What I need is to upload some files from the server (loaded from the zimlet as resource in the xml) to some folders in the briefcase.

    I looked over the way it is done for upload a file in the Briefcase section, but what I need is to upload the file without user interaction, so there won't be a upload file input in the html. Tryed to reproduce using js, loading the file and making a post request to service/upload but I get back an error in the js function (the url outputs html with a js script).

    Tryed using jsp but don't have any exp wit it and from what I understand he can't do a post including a file.

    From your answer I understand that there is no way to do this using th zimbra api for zimlets and I need to find another way but I can't find it. The problem sending a post with js is that I can't recreate the multipart header and let the server know that I am sending a file.

Similar Threads

  1. Access Briefcase files from Zimlet
    By brunoo.gonzalez in forum Zimlets
    Replies: 3
    Last Post: 06-06-2012, 10:20 AM
  2. How can i print briefcase files
    By gps in forum Users
    Replies: 6
    Last Post: 05-24-2011, 06:05 AM
  3. Replies: 21
    Last Post: 02-04-2010, 09:06 AM
  4. File Upload does not work in Briefcase
    By silviapreda in forum Administrators
    Replies: 25
    Last Post: 09-01-2009, 10:06 PM
  5. [SOLVED] 5.0 RC1 Can't see Documents or Briefcase files
    By jpcaldwell in forum Administrators
    Replies: 18
    Last Post: 11-27-2007, 03:32 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •