keystr0k
By: a guest | Mar 28th, 2009 | Syntax:
ActionScript | Size: 0.69 KB | Hits: 177 | Expires: Never
/**
* Invokes the Drupal file.save service method for saving a photo to Drupal.
*
* @param fileObj File object that must contain the Base64 data of the file
* @param callback Callback function on success.
* @param data [Optional] Data passed as argument to callback function.
* @param reload [Optional] If set to true, then any cached data for the node is ignored,
* and the node is reloaded from the Drupal site.
*
* @return Success (true) or failure (false) of blocking initiation.
*/
public function savePhotoToDrupal(fileObj:Object, callback:Function, data:Object = null, reload:Boolean = false):Boolean {
return startBlocking(callback, data, 'file save', 'file.save', fileObj);
}