Upload photo to Flickr by javascript