-
Notifications
You must be signed in to change notification settings - Fork 78
2.5. Advanced Configuration
If you need to enable security or customize store options, please follow the instructions below:
-
App Secret Key
-
Add
@import FPPicker;
(iOS) or@import FPPickerMac;
(OS X) to your app delegate (i.e., typicallyAppDelegate.m
) -
Add the following code on your app delegate and use the API Key you got after registering:
+ (void)initialize { (...) [FPConfig sharedInstance].appSecretKey = @"SET_FILEPICKER.IO_APPSECRETKEY_HERE"; (...) }
NOTE: This setting is required if security is enabled in Developer Portal.
-
-
Add
@import FPPicker;
(iOS) or@import FPPickerMac;
(OS X) to your app delegate (i.e., typicallyAppDelegate.m
)- Add the following code on your app delegate:
- Store Access
Indicates that the file should be stored in a way that allows public access going directly to the underlying file store.
+ (void)initialize { (...) [FPConfig sharedInstance].storeAccess = @"private"; (...) }
- Valid values are
public
orprivate
. - Defaults to
private
.
- Store Container
The bucket or container in the specified file store where the file should end up.
+ (void)initialize { (...) [FPConfig sharedInstance].storeContainer = @"some-alt-container"; (...) }
- Store Location
Where to store the file.
+ (void)initialize { (...) [FPConfig sharedInstance].storeLocation = @"S3"; (...) }
- Valid values are
S3
,azure
,dropbox
andrackspace
. - Defaults to
S3
.
- Store Path
The path to store the file at within the specified file store.
For S3, this is the key where the file will be stored at.
NOTE: For S3, please remember adding a trailing slash to the path (i.e.
my-custom-path/
)+ (void)initialize { (...) [FPConfig sharedInstance].storePath = @"some-path-within-bucket/"; (...) }