Custom storageOptions in Angular PhotoPicker
See original GitHub issuemy target is to upload photos in a private s3 bucket using the photopicker component. I tried the following way, however it does not work as expected and the storageOptions is ignored
opt:any = {
'level': 'private'
}
<amplify-photo-picker path="testpath" storageOptions="{{opt}}"></amplify-photo-picker>
After I debugged it it seams like the photo-picker.factory.js
receives the object as "[object Object]"
.
How am i supposed to pass the option? I tried different ways and nothing seams to work.
also it seams like it relaters to #2223
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Image Picker - NativeScript Docs
Imagepicker plugin supporting both single and multiple selection. ... folder you can find the usage of the plugin for TypeScript non-Angular application.
Read more >React Native Pick Images From Camera & Gallery Example
This library is based on ImagePicker component that lets you use native UI ... title: 'Choose file from Custom Option' }, ], storageOptions: ......
Read more >How to pick images from Camera & Gallery in React Native app
React Native Image Picker library provides an ImagePicker component in which you can set the options like the title of the picker, your...
Read more >Image Picker in React-Native - Swair AQ
We're gonna use react-native-image-picker, it provides an ImagePicker ... Your custom Buttons(Name and title of the button) and storage options like ...
Read more >How to implement multiple photo picker in Angular-Formly?
I'm trying to implement a custom template to allow for selection of image(s) to upload. After the user selects an image this is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@joshstir thanks for the info, I will try it out today
I’m not sure if you figured this out yet, but here is how I got it to work:
in my component:
public myOptions: StorageOptions = {level:
private};
then in my template
<amplify-photo-picker [storageOptions]="myOptions"></amplify-photo-picker>
Hope this helps!