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 07-20-2010, 07:35 PM
pns pns is offline
Member
 
Posts: 13
Default File upload problems (encoding type, properties)

Hi...

I am testing the ZimbraCS Briefcase on a remote server, to which I upload various types of files using a Java URLConnection object.

While the file contents are uploaded properly from my program, there seems to be a problem with the encoding type and a second problem with other (perhaps hidden) file properties.

Regarding the first case, calling urlConnection.setRequestProperty("content-type", <value>) does not seem to work, since a subsequent call to urlConnection.getContentEncoding() for retrieving the encoding type just set, returns null.

This results in binary files not being fully recognizable by the ZimbraCS server. For instance, MP3 files uploaded via my program do not get the loudspeaker icon that such files have next to them, when displayed in /Briefcase. Although, if I download such a file, it plays as expected.

A perhaps similar case (the second problem mentioned above), has to do with (hidden?) properties of uploaded files, that apparently must be set for the server to have full understanding of such files. More specifically, if not a ZimbraCS bug, when I try to delete a file uploaded using my program (through a Java URLConnection object), the deletion fails with an error message that the file already exists (!).

Any ideas?

Thanks!
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.