question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom storageOptions in Angular PhotoPicker

See original GitHub issue

my 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:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
XC3Scommented, Feb 26, 2019

@joshstir thanks for the info, I will try it out today

1reaction
joshstircommented, Feb 26, 2019

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found