ScalesCmsWeb.Components.CmsComponents.Helpers.FileUploaderMultiple (scales_cms v0.1.20)

A first draft of a fileuploader that can be used more than once in a live view

Summary

Functions

Attributes

  • entity_name (:string) (required)
  • target_name (:string) (required)

Presigns the S3 upload and returns the key and URL so the user can start the upload

Adds the uploaded file URLs to the block params

Functions

file_upload_component(assigns)

Attributes

  • entity_name (:string) (required)
  • target_name (:string) (required)

presign_entry(entry, socket)

Presigns the S3 upload and returns the key and URL so the user can start the upload

put_file_urls(entity_name, target_name, socket, block)

Adds the uploaded file URLs to the block params