Network
SoftLayer_Network_Storage_Iscsi::uploadFile

Overview

Upload a file to a Storage account's root directory. Once uploaded, this method returns new file entity identifier for the upload file.

The following properties are required in the file parameter.
*name: The name of the file you wish to upload
*content: The raw contents of the file you wish to upload.
*contentType: The MIME-type of content that you wish to upload.

Parameters

file

SoftLayer_Container_Utility_File_Entity

The file you wish to upload.

Headers

n/a
authenticate, SoftLayer_Network_Storage_IscsiInitParameters

Associated Methods

SoftLayer_Network_Storage::downloadFile

Error Handling

  • SoftLayer_Exception_Public: Throw the exception "Not yet implemented for this Storage type." if the Storage type is not supported.