Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Transfer API

Hi John,


The zip file is ok. I can unzip it with WinRAR. It is 15KB.

I tried another one with 108 bytes and here is the result:


{"readyState":4,"responseText":"{\"Severity\":\"Error\",\"Message\":\"Failed to complete file transfer on User/Folder\",\"HttpCode\":400,\"Code\":0,\"DetailedMessage\":\"invalid CEN header (bad signature)\"}","status":400,"statusText":"Bad Request"} - error - Bad Request



Best Regards,




From: orion-dev-bounces@xxxxxxxxxxx [mailto:orion-dev-bounces@xxxxxxxxxxx] On Behalf Of John Arthorne
Sent: Freitag, 6. September 2013 17:59
To: Orion developer discussions
Subject: Re: [orion-dev] Transfer API


Hi Vitaly,

Does the same zip import ok when importing on orionhub for example? The only thing that comes to mind is that the zip was not well formed and there was an error unzipping it. By default the import utility will attempt to extract any file with .zip file extension unless the "raw" header option is specified. Since it looks like you are running on localhost, you could always set a breakpoint in the import servlet and see what is happening on the server side in this case.


From:        "Kozyura, Vitaly" <v.kozyura@xxxxxxx>
To:        Orion developer discussions <orion-dev@xxxxxxxxxxx>,
Date:        09/06/2013 08:46 AM
Subject:        [orion-dev] Transfer API
Sent by:        orion-dev-bounces@xxxxxxxxxxx

The following code does not want to work on the Orion server (
var files = document.getElementById("fileinput").files;
                        if (files[0]) {
                                   var r = new FileReader();
                                   r._onload_ = function(e) {
                                               var contents =;                                    
                                               url: "http://localhost:8080/xfer/import/User/Folder",
                                               type: 'POST',
                                               data: contents,
                                               headers: {
                                                           "Orion-Version": "1",
                                                           "Content-Type": "application/zip"                  
                                               success: onComplete,
                                               error: onError
The error is:
{"readyState":4,"responseText":"{\"Severity\":\"Error\",\"Message\":\"Failed to complete file transfer on User/Folder/\",\"HttpCode\":400,\"Code\":0,\"DetailedMessage\":\"error in opening zip file\"}","status":400,"statusText":"Bad Request"} - error - Bad Request
Can anybody help me with the problem?
Thanks in advance,
orion-dev mailing list

Back to the top