Documentation home page

CFlickr.photos.upload
Component UploadInterface

AbstractInterface
  |
  +--photos.upload.UploadInterface

Method Summary
public array checkTickets(string tickets)
Checks the status of one or more asynchronous photo upload tickets.
private Response post([struct params="#structnew()#"], [string url="#flickr.getUrl('upload')#"])
public string replacePhoto(string photo, string photo_id, [boolean async="0"])
Replace a photo with a new image
public string uploadPhoto(string photo, [string title], [string description], [string tags], [boolean is_public], [boolean is_friend], [boolean is_family], [boolean async="0"])
Upload a photo to Flickr

Methods inherited from AbstractInterface
init
 

Method Detail

checkTickets

public array checkTickets(string tickets)
Checks the status of one or more asynchronous photo upload tickets.

Parameters:
string tickets (Required) - A comma-delimited list of ticket ids

post

private CFlickr.Response post([struct params="#structnew()#"], [string url="#flickr.getUrl('upload')#"])
Parameters:
struct params="#structnew()#" (Optional)
string url="#flickr.getUrl('upload')#" (Optional)

replacePhoto

public string replacePhoto(string photo, string photo_id, [boolean async="0"])
Replace a photo with a new image

Parameters:
string photo (Required) - Absolute path to an image file to upload
string photo_id (Required) - The ID of the photo to replace
boolean async="0" (Optional) - If true will return a upload ticket, if false will return the photoid

uploadPhoto

public string uploadPhoto(string photo, [string title], [string description], [string tags], [boolean is_public], [boolean is_friend], [boolean is_family], [boolean async="0"])
Upload a photo to Flickr

Parameters:
string photo (Required) - Absolute path to an image file to upload
string title (Optional) - The title of the photo.
string description (Optional) - A description of the photo. May contain some limited HTML.
string tags (Optional) - A space-seperated list of tags to apply to the photo.
boolean is_public (Optional) - Set to false for no, true for yes. Specifies who can view the photo.
boolean is_friend (Optional) - Set to false for no, true for yes. Specifies who can view the photo.
boolean is_family (Optional) - Set to false for no, true for yes. Specifies who can view the photo.
boolean async="0" (Optional) - If true will return an upload ticket, if false will return the photoid