LiveConnectClient uploadToPath:fileName:data:delegate method
Performs an asynchronous upload of a resource to a user's Microsoft OneDrive account.
This method uses a given path, file name, file data, and optionally, a LiveUploadOperationDelegate.
Signature
- (LiveOperation *) uploadToPath:(NSString *)path
fileName:(NSString *)fileName
data:(NSData *)data
delegate:(id <LiveUploadOperationDelegate>)delegate;
Parameters
Name |
Datatype |
Description |
---|---|---|
path |
NSString |
Required. The path or object ID of the folder to upload the file to. |
fileName |
NSString |
Required. The file name to use for the file being uploaded on OneDrive. |
data |
NSData |
Required. The NSData instance that contains the data to upload. |
delegate |
id <LiveUploadOperationDelegate> |
Optional. An instance of a class that implements the LiveUploadOperationDelegate protocol. |
Returns
Type: LiveOperation
The asynchronous operation that is used to track the asynchronous REST reference request and get response data once the operation completes.
Defined in
LiveConnectClient.h