Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-13-2008, 05:56 AM
Project Contributor
 
Posts: 52
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
File Type: jpg Untitled-1.jpg (13.8 KB, 144 views)
Reply With Quote
  #2 (permalink)  
Old 02-14-2008, 06:36 AM
Zimbra Employee
 
Posts: 1,434
Default

Try adding

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

right after the requestId param.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 03:19 AM
Project Contributor
 
Posts: 52
Default

We tried it but it doesn't help.
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 07:23 AM
Zimbra Employee
 
Posts: 1,434
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!
Reply With Quote
  #5 (permalink)  
Old 02-24-2008, 11:09 PM
Project Contributor
 
Posts: 52
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?
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 06:42 AM
Zimbra Employee
 
Posts: 1,434
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.