To clarify, Live Upload is supported in LiveView
and LiveComponent
in 2022. It has well support on server-side uploading and client-side direct uploading.
If you encounter any problems, check:
allow_upload/3
-
phx-target
attribute of form element if you are using LiveComponent - …
The example provided by @outlog is recommended.