-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: improve image upload component #536
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also make it so that the component can be used multiple times in a single liveview? 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I uploaded an image of 22kb and then a 220kb image as a profile picture, and it doesn't showed any error in the UI but phoenix returned the following error.
** (CaseClauseError) no case clause matching: {:error, #Ecto.Changeset<action: :update, changes: %{}, errors: [profile_picture: {"file size exceeds maximum allowed size", [type: Atomic.Uploaders.ProfilePicture.Type, validation: :cast]}], data: #Atomic.Accounts.User<>, valid?: false, ...>}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏁 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏁 🚀
No description provided.