FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Flickr API, upload file with POST Method
Posts: 230
Joined: Sat Apr 19, 2008 10:28 PM
Flickr API, upload file with POST Method
Posted: Mon May 20, 2013 11:52 PM
Good evening,

I want to make a small app to upload pictures to Flickr. There are some around, but I want to give special TAGs to each picture and to organize pictures in different "Collections" in 5 different levels.

I need to make a POST for a "file" to the Flickr URL. Any one can tell me how to do that from FiveWin? I have use the function HB_InetConnect before but I don't know how to add the local file to the POST.

More information here:

http://www.flickr.com/services/api/upload.api.html

The equivalent in the navigator would be:

Code (fw): Select all Collapse
<form  method="post" accept-charset="utf-8" enctype='multipart/form-data'>
    <p>Name: &nbsp; <input type="text" name="name" value="" ></p>
    <p>Picture: <input type="file" name="file"/></p>
   <p><input type="submit" value="Submit"></p>
  </form>



Thank you very much.

Alvaro
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Flickr API, upload file with POST Method
Posted: Tue May 21, 2013 06:41 AM
My advice is to use curl. Here you have some examples:

http://stackoverflow.com/questions/1112250/using-flickr-api-curl-to-get-image-url-caption

See my posts here on these forums for curl:
viewtopic.php?p=144744#p144744
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 230
Joined: Sat Apr 19, 2008 10:28 PM
Re: Flickr API, upload file with POST Method
Posted: Wed May 22, 2013 09:20 AM

Gracias Antonio.

Al final he usado PHP que era más sencillo.

Alvaro

Continue the discussion