AlfrescoContentFile Class Reference
Inherits from | AlfrescoContent : NSObject |
Declared in | AlfrescoContentFile.h |
Overview
The AlfrescoContentFile objects are used for download/upload content.
Author: Gavin Cornwell (Alfresco), Tijs Rademakers (Alfresco), Peter Schmidt (Alfresco)
Tasks
initialisers.
-
– initWithUrl:
Creates a new file in the temporary directory folder and copies the data of the file at URL Detects the mime type based on the extension of the file. This method is when downloading a file from a given URL
-
– initWithUrl:mimeType:
Creates a new file in the temporary directory folder and copies the data of the file at URL Detects the mime type based on the extension of the file. This method is when downloading a file from a given URL
-
– initWithData:mimeType:
creates a new file in the temporary folder. This method is used for uploading. E.g. images from the Photolibrary are accessible through their data, but not directly through a file URL.
Instance Methods
initWithData:mimeType:
creates a new file in the temporary folder. This method is used for uploading. E.g. images from the Photolibrary are accessible through their data, but not directly through a file URL.
- (id)initWithData:(NSData *)data mimeType:(NSString *)mimeType
Parameters
- data
The data to initialise the AlfrescoContentFile with
- mimeType
the mime type of the data
Discussion
creates a new file in the temporary folder. This method is used for uploading. E.g. images from the Photolibrary are accessible through their data, but not directly through a file URL.
Declared In
AlfrescoContentFile.h
initWithUrl:
Creates a new file in the temporary directory folder and copies the data of the file at URL Detects the mime type based on the extension of the file. This method is when downloading a file from a given URL
- (id)initWithUrl:(NSURL *)url
Parameters
- the
URL of the file.
Discussion
Creates a new file in the temporary directory folder and copies the data of the file at URL Detects the mime type based on the extension of the file. This method is when downloading a file from a given URL
Declared In
AlfrescoContentFile.h
initWithUrl:mimeType:
Creates a new file in the temporary directory folder and copies the data of the file at URL Detects the mime type based on the extension of the file. This method is when downloading a file from a given URL
- (id)initWithUrl:(NSURL *)url mimeType:(NSString *)mimeType
Parameters
- the
URL of the file.
- mimeType.
If nil is passed in, AlfrescoContentFile attempts to deduce the mimetype from the file name. In case none can be found, the mimeType will remain nil.
Discussion
Creates a new file in the temporary directory folder and copies the data of the file at URL Detects the mime type based on the extension of the file. This method is when downloading a file from a given URL
Declared In
AlfrescoContentFile.h