Adobe Connect User Community
Menu

#1 2010-01-04 14:55:16

**_km70569w_**

Upload file to a folder on connect pro

Hi,
I am new to connect pro and am trying to write a script to upload a file to connect pro using the API. I am able to authenticate and get the cookie values. When I call sco-upload an image file to an existing folder called "test" with it sco-id in my shared content, it updates the "test" folder type to image and the icon is changed to image. but the file doesnt get uploaded to the folder.

here is my upload html sample code.
<form name="myFileUploadForm"
              action="http://testconnect.test.com/api/xml?action=sco-upload&sco-id=41489"
              method="post" enctype="multipart/form-data">
            <input type=file name=file><br>
            <input type="Submit" value="Upload">           
        </form>

here the 41489 is the sco-id  for the test folder. I think i am missing something here. Can any one help please!!!

thanks in advance,

KM

Offline

#2 2010-01-04 17:02:23

**_km70569w_**

Re: Upload file to a folder on connect pro

BTW, When I tried to use sco-update as below, I get <status code="no-access" subcode="denied" /> .

what does this mean?

<form name="myFileUpdateForm"
              action="http://testconnect.test.com/api/xml?action=sco-update&folder-id=20011&lang=en&type=folder"
              method="post" enctype="multipart/form-data">
            <input type="text" name=description value="test"><br>
            <input type="text" name=name value="test"><br>
            <input type="Submit" value="Update">
        </form>

As per the documentation we have to use sco-update if I am creating a new content. so 20011 is the folder-id where I am actually creating this new image. Also is tab-id and folder-id mean the same?

thanks.
KM

Offline

Board footer