OpenBD Wiki

From OpenBD
Jump to: navigation, search

NXPutFile()

This function puts a local file into a Nirvanix account.

Contents

Parameters

NXPutFile( sessionToken, localFile, remoteFile )

  • sessionToken - a current token returned by NXLogin()
  • localFile - the path and name of where the file will be saved to on the local file system
  • remoteFile - the path and name of the file you want to retrieve

Returns

This function returns TRUE if successful, or throws an exception if unsuccessful.

Example

<cfset sessionKey= NXLogin( appKey, user, pass )> 
<cfset userData = NXPutFile( sessionKey, "/tmp/smallimg.jpg", "/backup/smallimg.jpg" )>


Engine Compatibility

  • OpenBD 1.0+

Personal tools