Giter Club home page Giter Club logo

Comments (7)

beedrill avatar beedrill commented on July 28, 2024 2

Seriously, amplify-s3-image-picker has ZERO documentation on its API options and how to use it.

from amplify-ui.

ucjallen avatar ucjallen commented on July 28, 2024 1

I had some help from the aws subreddit, so, basically you need to use a Hub.Listen("storage") for the upload success event. That initially wasn't working until I added the "track" param to the image picker as well. Then i finally received the storage events that the image picker was using. This should definitely be mentioned in the documentation, because the storage events do not fire without the track param added!

Unfortunately, there is not enough customization available with the current image picker, no cropper, no dimension restrictions, no resize ability and no file type restrictions, so I ended up writing a custom image picker using a file input, an image cropper library and the Storage.put method

from amplify-ui.

mauerbac avatar mauerbac commented on July 28, 2024

hi @ucjallen - do you get an error message? Can you provide more info about your environment? Version of Amplify, etc... ? Thank you

from amplify-ui.

mauerbac avatar mauerbac commented on July 28, 2024

Hi @ucjallen - going to re-open this so we can verify this issue and update the S3 Image Picker Docs

from amplify-ui.

b-bot avatar b-bot commented on July 28, 2024

@ucjallen thanks for this tip was wondering how to do it and wanted to stay in the confines of the amplify ecosystem.

there should DEFINTELY be a callback function that monitors upload status and returns the file path / signed url.

from amplify-ui.

ucjallen avatar ucjallen commented on July 28, 2024

Here is what my solution ended up looking like for a profile page image component in angular. It is mobile friendly as well. Hopefully this helps anyone that finds this.

I also used an image cropping library as well and got that to work with it. It is setup with cognito as well

https://github.com/ucjallen/s3-image-picker/tree/master

from amplify-ui.

reesscot avatar reesscot commented on July 28, 2024

Closing out as the S3 Image Picker component has been deprecated.

from amplify-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.