Results 1 to 6 of 6

Thread: Uploading files to Zimbra, encoding problem

  1. #1
    Abak is offline Project Contributor
    Join Date
    Mar 2006
    Posts
    52
    Rep Power
    9

    Default Uploading files to Zimbra, encoding problem

    We are uploading files to Zimbra with FileUploadServlet.
    File name contains Eastern European characters. They are visible in Linux but replaced with ? in Zimbra briefcase.
    We use CFML to upload, here is the code:
    Code:
    <cfhttp method="POST" url="http://#host#/service/upload?fmt=raw">
     <cfhttpparam type="Cookie" name="ZM_AUTH_TOKEN" value="#token#">
     <cfhttpparam type="Header" name="Content-Type" value="multipart/form-data">
     <cfhttpparam type="FormField" name="requestId" value="#token#">
     <cfhttpparam type="File" name="file" file="#file#">
    </cfhttp>
    Uploading with Firefox in Linux works fine.
    What could be wrong?
    Attached Images Attached Images

  2. #2
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    Try adding

    <cfhttpparam type="FormField" name="_charset_" value="charset-you're-using">

    right after the requestId param.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Abak is offline Project Contributor
    Join Date
    Mar 2006
    Posts
    52
    Rep Power
    9

    Default

    We tried it but it doesn't help.

  4. #4
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    OK. What does the HTTP form upload sent to the server look like? Because the _charset_ mechanism is exactly how the AJAX client deals with uploaded files with non-ASCII filenames...
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #5
    Abak is offline Project Contributor
    Join Date
    Mar 2006
    Posts
    52
    Rep Power
    9

    Default Any way to rename the uploaded file?

    It seems to be bug in our CFML engine.
    But please tell us if there is any way to rename the file after it is uploaded?

  6. #6
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    No, you cannot update the name of an already-uploaded attachment.
    Bugzilla - Wiki - Downloads - Before posting... Search!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  3. Replies: 7
    Last Post: 01-24-2007, 11:03 PM
  4. zimbra-core missing
    By kinaole in forum Developers
    Replies: 1
    Last Post: 10-02-2006, 11:59 AM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM

Posting Permissions

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