Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

LiveCycle Remoting and file upload

Jan_Babicky
Level 3
Level 3

Hi,

in older version of LiveCycle (LiveCycle ES 8.2) I had a process that converted file to PDF. I was using the URLRequest to http://" + serverPort + "/remoting/lcfileupload to upload file to the server and transfer it to the process.

Since I have upgraded LiveCycle to LiveCycle ES2 and the anonymous Flex remoting upload is not enabled, I would like to do a secured one, however I have no clue how to secure the remoting.

I am passing credentials to channelset that invokes the process after initialization of the application and I also tried to modify headers to pass authentication to the URLRequest with no luck.

Has anyone tried to use upload to LiveCycle ES2 with secured remoting?

Thanks

J.

PS. this is the code that is causing the anonymous connection. fileRef is defined at the drop event.

private function startUpload():void
    {        
           fileRef.addEventListener("uploadCompleteData", completeHandler);
           try
           {

              //omited, I am supplying file through drag/drop feature to AIR client
              //var success:Boolean = fileRef.browse();
           }
           catch (error:Error)
           {
              trace("Unable to browse for files.");
           }


           trace("manual setting for the fileupload");
           var request:URLRequest = new URLRequest("http://" + serverPort + "/remoting/lcfileupload")

           trace("here I cause error");         

           fileRef.upload(request)

    }

2 Replies
Jan_Babicky
Level 3
Level 3

This solved my issue. http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.html (chapter Passing secure documents to invoke processes using Remoting was very helpfull)

J.

John_C_Cummins
Level 2
Level 2

This helped me out too. That was exactly the link I needed. Thanks for posting it.