Hello,

I want add a file to the working file repository and I am using the POST 
/file/mediapackage/mp-id/catalog-id with filename (the third from last) in the 
rest endpoint docs. Testing from the rest endpoint docs page works -- I can 
upload files. But it fails when I do it from a Java applet. Here is the code:

Connection.Response res = 
Jsoup.connect("http://myserver:8080/files/mediapackage/[some existing mp-id 
here]/catalog-17").cookie("JSESSIONID", cookie).data("file", [string with 
catalog]).method(Method.POST).execute();

I get an exception with an http error 400. Is there something in the header I 
am not supplying? Or maybe the "/mediapackage/mp-id/catalog-id" should be 
passed as data?

Regards,
Biser
_______________________________________________
Matterhorn-users mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn-users

Reply via email to