Flickr API, upload file with POST Method

Flickr API, upload file with POST Method

Postby alvaro533 » 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: Select all  Expand view
<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
alvaro533
 
Posts: 206
Joined: Sat Apr 19, 2008 10:28 pm
Location: Madrid, España

Re: Flickr API, upload file with POST Method

Postby Antonio Linares » Tue May 21, 2013 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Flickr API, upload file with POST Method

Postby alvaro533 » Wed May 22, 2013 9:20 am

Gracias Antonio.

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

Alvaro
alvaro533
 
Posts: 206
Joined: Sat Apr 19, 2008 10:28 pm
Location: Madrid, España


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 81 guests