You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code generates an upload policy that will be used by S3, in this example the maximum file size is limited to 10MB (10 * 1024 * 1024), update it to match your requirments. for a full list of S3's policy options, please refer to [AWS documentation](http://docs.aws.amazon.com/AmazonS3/latest/dev/HTTPPOSTExamples.html#HTTPPOSTExamplesTextAreaPolicy).
94
-
95
94
96
-
## How to get it ?
95
+
96
+
## How to get it ?
97
97
98
98
#### Manual Download
99
99
Download the from [here](https://github.com/asafdav/ng-s3upload/releases)
* getOptionsUri - The uri of the server service that is needed to sign the request (mentioned in section Setup#4) - Required.
131
+
* getOptionsUri - The uri of the server service that is needed to sign the request (mentioned in section Setup#4) - Required if second option is empty.
132
+
* getManualOptions - if for some reason you need to have your own mechanism of getting a policy, you can simply assign your scope variable to this option. Note it should be resolved on the moment of directive load.
132
133
* folder - optional, specifies a folder inside the bucket the save the file to
133
134
* enableValidation - optional, set to "false" in order to disable the field validation.
134
135
* targetFilename - An optional attribute for the target filename. if provided the file will be renamed to the provided value instead of having the file original filename.
135
-
136
+
136
137
## Themes
137
138
ng-s3upload allows to customize the directive template using themes. Currently the available themes are: bootstrap2, bootstrap3
0 commit comments