Share Pastebin
Guest
Public paste!

keystr0k

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