It is not clear for the docs how exactly images are to be encoded. I am assuming this is multipart form encoded (described in rfc 1867.), which means the whole post should be multipart encoed, but could be straight base64. Would be good to know?
Gallery v2.1.2 with remote protocol server version 2.8
Having some problems getting the info about extra fields from the Remote API. As an example for a call to "fetch-album-images" (http://codex.gallery2.org/Gallery_Remote:Protocol#fetch-album-images), on a test album with one image - I send:
cmd=fetch-album-images protocol_version=2.4 set_albumName=album-name
Now I should get back a response which includes this information:
|image.caption.ref-num=caption associated with the image
|image.title.ref-num=title associated with the image [G2]
0...n |image.extrafield.fieldname.ref-num=value of the extra field of key fieldname
But I get nothing back about "extrafield" and the "image.caption.ref-num" is contains the "title" as shown in the web GUI and the "image.title.ref-num" contians the (file)Name as shown in the GUI. Can find "description" and "keywords" nowhere in the response.
Here is the full response:
#__GR2PROTO__ image.name.1=71 image.raw_width.1=790 image.raw_height.1=526 image.raw_filesize.1=58047 image.resizedName.1=117 image.resized_width.1=500 image.resized_height.1=333 image.thumbName.1=72 image.thumb_width.1=75 image.thumb_height.1=75 image.forceExtension.1=jpg image.caption.1=Istanbul Photo Title image.title.1=400636903_445ac44eec_o.jpg image.hidden.1=no baseurl=http\://image.architex.tv/main.php?g2_view\=core.DownloadItem&g2_itemId\= image_count=1 status=0 status_text=Fetch-album-images successful. debug_user=admin debug_time=0.189s
--Fortyfoxes 06:40, 11 March 2007 (PDT) Bold text