Recent Posts
XML | 23 sec ago
Bash | 30 sec ago
XML | 37 sec ago
None | 51 sec ago
C | 1 min ago
None | 1 min ago
Lua | 1 min ago
PAWN | 1 min ago
None | 1 min ago
VB.NET | 2 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By keystr0k on the 28th of Mar 2009 03:08:51 PM Download | Raw | Embed | Report
  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. }
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: