📄️ Overview
File uploads are another common feature of web applications. LiveViewJS provides built in support for file uploads, image previews, upload progress, drag and drop, error handling, and more. Handling file uploads can be intimidating, but LiveViewJS makes it easy.
📄️ Built-in Image Preview
LiveViewJS ships with build-in support for image previews when uploading files.
📄️ Built-in Drag and Drop
LiveViewJS ships with built-in support for drag and drop file uploads. It is incredibly easy to use. All you need to do is add a ` that has the phx-drop-target attribute set to the upload config ref you want to target. For example, if you want to allow users to drag and drop files into a photos` upload config, you would do the following:
📄️ Upload Config Options
These are the options you can pass into the allowUpload method to configure the upload.