Hi all,
I am developing a photo application which should be connected to a web gallery, so that the users should be able to upload the images from the application to the gallery.
Is there a way to authenticate and upload the photos to zenphoto powered gallery from a C/C++ application? Any API or example code?
Thanks in advance,
Eugene.
There was once apon a time an implemetaton of such a feature for Windows systems. Unfortunately I could never get it to work for me. And I no longer remember what it was called.
Anyway, your application will have to issue a "POST" to the server passing the logon credentials. Take a look at the logon form for what gets posted. You will also have to provide a php script (plugin, I presume) to handle the upload since our upload handlers are pretty touchy about where they get their POST data from. We are concerned that unscrupulous hackers will "forge" the POST to the uploader and upload nefarious files. (Something you should keep in mind--you really want to be sure your upload handler knows it is getting its data from your client application, not some forged interlooper.)
Probably implementing an FTP protocol is a better approach.
No, FTP is of course completely independent from Zenphoto as it is direct access to the server/webspace bypassing anything.w
The old windows tools are listed here:
http://www.zenphoto.org/news/category/windows-tools
Haven't check if they are even still downloadable.