LuxChat  2.0
Instant messenger for iOS
Instance Methods | List of all members
<PFFileUploadController> Protocol Reference

#import <PFFileUploadController.h>

Inheritance diagram for <PFFileUploadController>:

Instance Methods

(BFTask< PFFileUploadResult * > *_Nonnull) - uploadSourceFilePath:fileName:mimeType:sessionToken:cancellationToken:progressBlock:
 

Detailed Description

A policy interface for overriding the default upload behavior of uploading a PFFile to application's parse server. Allows for direct uploads to other file storage providers.

Method Documentation

- (BFTask<PFFileUploadResult *> * _Nonnull) uploadSourceFilePath: (NSString *_Nonnull)  sourceFilePath
fileName: (NSString *_Nullable)  fileName
mimeType: (NSString *_Nullable)  mimeType
sessionToken: (NSString *_Nonnull)  sessionToken
cancellationToken: (BFCancellationToken *_Nonnull)  cancellationToken
progressBlock: (PFProgressBlock _Nonnull)  progressBlock 

Uploads a file asynchronously from file path for a given file state.

Parameters
sourceFilePathPath to the file to upload.
fileNameThe PFFile's fileName.
mimeTypeThe PFFile's mime type.
sessionTokenThe current users's session token.
cancellationTokenCancellation token.
progressBlockProgress block to call (optional).
Returns
BFTask with a success result set to PFFileUploadResult containing the url and name of the uploaded file.

The documentation for this protocol was generated from the following file: