# \#uploads

**URL:** https://forum.elixirforum.com/tag/uploads/1807.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [PhxMediaLibrary - Spatie's Media Library, reimagined for Elixir/Phoenix](https://forum.elixirforum.com/t/phxmedialibrary-spaties-media-library-reimagined-for-elixir-phoenix/74415)

<div class="topic-metadata">

**Author:** [@mike-kostov](https://forum.elixirforum.com/u/mike-kostov)\
**Replies:** 4\
**Last updated:** [October 13, 2026, 10:11pm UTC](https://forum.elixirforum.com/t/phxmedialibrary-spaties-media-library-reimagined-for-elixir-phoenix/74415 "2026-10-13T22:11:28Z")

</div>

Hey, I recently picked up learning Elixir and Phoenix, and this is my first Open Source library, ever. I’ve 10+ years of web dev experience with PHP and Laravel, and I am so used to the human-friendly ecosystem that I tr…

---

## [Here's how to upload to Cloudflare R2 - tweaks from original S3 implementation code](https://forum.elixirforum.com/t/heres-how-to-upload-to-cloudflare-r2-tweaks-from-original-s3-implementation-code/58686)

<div class="topic-metadata">

**Author:** [@mekusigjinn](https://forum.elixirforum.com/u/mekusigjinn)\
**Replies:** 9\
**Last updated:** [September 23, 2024, 5:19am UTC](https://forum.elixirforum.com/t/heres-how-to-upload-to-cloudflare-r2-tweaks-from-original-s3-implementation-code/58686 "2024-09-23T05:19:54Z")

</div>

After rummaging through ElixirForum, dissecting the HexDocs, I’ve finally been successful at uploading to Cloudflare R2 (which is cheaper than S3). For those who don’t know - Cloudflare R2 actually has the same API as S…

---

## [Plug.Static is unable to serve files in production](https://forum.elixirforum.com/t/plug-static-is-unable-to-serve-files-in-production/25439)

<div class="topic-metadata">

**Author:** [@supernova32](https://forum.elixirforum.com/u/supernova32)\
**Replies:** 26\
**Last updated:** [June 19, 2024, 3:13pm UTC](https://forum.elixirforum.com/t/plug-static-is-unable-to-serve-files-in-production/25439 "2024-06-19T15:13:58Z")

</div>

Hi everyone, I have been banging my head against a wall for the last couple of days because of a really weird problem I’m having in production. I have a very simple Phoenix app that lets an admin user upload an image w…

---

## [Liveview presign\_upload() for external uploads triggering even when changeset is NOT valid](https://forum.elixirforum.com/t/liveview-presign-upload-for-external-uploads-triggering-even-when-changeset-is-not-valid/60024)

<div class="topic-metadata">

**Author:** [@PrincetonPoh](https://forum.elixirforum.com/u/PrincetonPoh)\
**Replies:** 6\
**Last updated:** [January 17, 2024, 9:12pm UTC](https://forum.elixirforum.com/t/liveview-presign-upload-for-external-uploads-triggering-even-when-changeset-is-not-valid/60024 "2024-01-17T21:12:54Z")

</div>

I’m trying to upload a music file. I’ve created a music struct. It takes a title (string) and file\_path (string) I create a form which requires a title and a file upload. What I expect is for the form to throw errors w…

---

## [How to validate an array of strings for the upload files in Phoenix LiveView](https://forum.elixirforum.com/t/how-to-validate-an-array-of-strings-for-the-upload-files-in-phoenix-liveview/39079)

<div class="topic-metadata">

**Author:** [@romenigld](https://forum.elixirforum.com/u/romenigld)\
**Replies:** 26\
**Last updated:** [December 5, 2023, 5:07am UTC](https://forum.elixirforum.com/t/how-to-validate-an-array-of-strings-for-the-upload-files-in-phoenix-liveview/39079 "2023-12-05T05:07:29Z")

</div>

Hello Guys, I was doing the course of the PraProg Phoenix LiveView Pro and I was trying to do a validation for the upload files. For example If I try to put just the name of the desks and not put any file for upload, I…

---

## [Local Liveview Uploads in production](https://forum.elixirforum.com/t/local-liveview-uploads-in-production/37199)

<div class="topic-metadata">

**Author:** [@Pbotsaris](https://forum.elixirforum.com/u/Pbotsaris)\
**Replies:** 15\
**Last updated:** [October 17, 2023, 7:36pm UTC](https://forum.elixirforum.com/t/local-liveview-uploads-in-production/37199 "2023-10-17T19:36:11Z")

</div>

Hello everyone, I’m trying to deploy an app that uses Liveview uploads to save to both a local /uploads folder as well a S3 bucket. I guess I just wanted to test how both work! Anyway, the upload to S3 is working in pro…

---

## [Processing uploaded files as they're being uploaded](https://forum.elixirforum.com/t/processing-uploaded-files-as-theyre-being-uploaded/56631)

<div class="topic-metadata">

**Author:** [@hubertlepicki](https://forum.elixirforum.com/u/hubertlepicki)\
**Replies:** 4\
**Last updated:** [June 23, 2023, 1:01am UTC](https://forum.elixirforum.com/t/processing-uploaded-files-as-theyre-being-uploaded/56631 "2023-06-23T01:01:42Z")

</div>

I have a service that allows for taking voice commands. These voice commands are being recorded through the browser, and are being sent to my Phoenix application. Once I have the file, I am calling OpenAI Whisper APIs t…

---

## [Library for parsing and building RFC-compliant\* Content-Disposition headers](https://forum.elixirforum.com/t/library-for-parsing-and-building-rfc-compliant-content-disposition-headers/55708)

<div class="topic-metadata">

**Author:** [@felix-starman](https://forum.elixirforum.com/u/felix-starman)\
**Replies:** 2\
**Last updated:** [May 6, 2023, 6:44am UTC](https://forum.elixirforum.com/t/library-for-parsing-and-building-rfc-compliant-content-disposition-headers/55708 "2023-05-06T06:44:17Z")

</div>

I’ve noticed that often when I find myself needing to manually set content-disposition - \[MDN\] the advice is usually to use URI.encode\_www\_form or sometimes URI.encode. This has usually resulted in users receiving files …

---

## [Looking feedback on a multi-node deployment setup](https://forum.elixirforum.com/t/looking-feedback-on-a-multi-node-deployment-setup/55508)

<div class="topic-metadata">

**Author:** [@sodapopcan](https://forum.elixirforum.com/u/sodapopcan)\
**Replies:** 4\
**Last updated:** [April 26, 2023, 5:25pm UTC](https://forum.elixirforum.com/t/looking-feedback-on-a-multi-node-deployment-setup/55508 "2023-04-26T17:25:55Z")

</div>

I’m looking for some feedback/validation on a deployment setup. It’s a few months out still, just asking early. My main app is a mini monolith. It’s a relatively small e-commerce web app with an admin area and some ot…

---

## [Cloud-storage - direct upload package](https://forum.elixirforum.com/t/cloud-storage-direct-upload-package/53876)

<div class="topic-metadata">

**Author:** [@stephane](https://forum.elixirforum.com/u/stephane)\
**Replies:** 0\
**Last updated:** [February 13, 2023, 6:51pm UTC](https://forum.elixirforum.com/t/cloud-storage-direct-upload-package/53876 "2023-02-13T18:51:48Z")

</div>

Hey everyone :waving\_hand:, Letting you know that I started a package named cloud-storage to handle direct upload (WIP). Although direct upload is not really a big deal, I wanted a simple reusable upload package that h…

---

## [How to include file extension with LiveView Uploads?](https://forum.elixirforum.com/t/how-to-include-file-extension-with-liveview-uploads/49981)

<div class="topic-metadata">

**Author:** [@spyq](https://forum.elixirforum.com/u/spyq)\
**Replies:** 4\
**Last updated:** [September 4, 2022, 6:58am UTC](https://forum.elixirforum.com/t/how-to-include-file-extension-with-liveview-uploads/49981 "2022-09-04T06:58:10Z")

</div>

I’ve followed the uploads guide and have uploads working with one small issue - the files have no file type extension (.jpg etc). Here is my handler: def handle\_event("save", \_params, socket) do uploaded\_files = …

---

## [Obtain LiveView Uploads File Width, Height and Duration Metadata](https://forum.elixirforum.com/t/obtain-liveview-uploads-file-width-height-and-duration-metadata/49199)

<div class="topic-metadata">

**Author:** [@crockwave](https://forum.elixirforum.com/u/crockwave)\
**Replies:** 4\
**Last updated:** [July 29, 2022, 8:50pm UTC](https://forum.elixirforum.com/t/obtain-liveview-uploads-file-width-height-and-duration-metadata/49199 "2022-07-29T20:50:31Z")

</div>

I would like to use Phoenix LiveView Uploads to store server-side files of type video, image and audio. I would like to avoid integrating a javascript file uploader LiveView Uploads provides size metadata, but I also n…

---

## [How to implement Chunked HTTP Uploads using ex\_aws\_s3 and UpChunk for AWS S3 Bucket](https://forum.elixirforum.com/t/how-to-implement-chunked-http-uploads-using-ex-aws-s3-and-upchunk-for-aws-s3-bucket/45216)

<div class="topic-metadata">

**Author:** [@envixo](https://forum.elixirforum.com/u/envixo)\
**Replies:** 0\
**Last updated:** [January 13, 2022, 3:07pm UTC](https://forum.elixirforum.com/t/how-to-implement-chunked-http-uploads-using-ex-aws-s3-and-upchunk-for-aws-s3-bucket/45216 "2022-01-13T15:07:54Z")

</div>

Hi guys, I am trying to implement chunked http uploads using ex\_aws\_s3 and UpChunk. I am following the documentation: https://hexdocs.pm/phoenix\_live\_view/uploads-external.html#chunked-http-uploads But I don’t know ho…

---

## [Is there a better way to send tweaks to elixir source to RPi than burning firmware?](https://forum.elixirforum.com/t/is-there-a-better-way-to-send-tweaks-to-elixir-source-to-rpi-than-burning-firmware/39932)

<div class="topic-metadata">

**Author:** [@cone10](https://forum.elixirforum.com/u/cone10)\
**Replies:** 16\
**Last updated:** [May 23, 2021, 4:36pm UTC](https://forum.elixirforum.com/t/is-there-a-better-way-to-send-tweaks-to-elixir-source-to-rpi-than-burning-firmware/39932 "2021-05-23T16:36:31Z")

</div>

I’m new to both Elixir and RPi, so forgive me if I am missing something totally obvious. After burning the firmware on the SD card, say I want to simply tweak one source file. Is there a simple way to do it? I don’t wan…

---

## [LiveView Image Upload - Update does not work](https://forum.elixirforum.com/t/liveview-image-upload-update-does-not-work/38963)

<div class="topic-metadata">

**Author:** [@iv-mexx](https://forum.elixirforum.com/u/iv-mexx)\
**Replies:** 2\
**Last updated:** [April 14, 2021, 8:24pm UTC](https://forum.elixirforum.com/t/liveview-image-upload-update-does-not-work/38963 "2021-04-14T20:24:36Z")

</div>

I’m getting started with LiveView Upload by following Chris McCord’s Video ( https://youtu.be/PffpT2eslH8?t=795 ) and I have some trouble with updating an entity with a new Image. In the Video, in the :edit Action of t…

---

## [LiveView Uploads: single file, allow to change it before actual upload](https://forum.elixirforum.com/t/liveview-uploads-single-file-allow-to-change-it-before-actual-upload/36020)

<div class="topic-metadata">

**Author:** [@marcelfahle](https://forum.elixirforum.com/u/marcelfahle)\
**Replies:** 0\
**Last updated:** [December 6, 2020, 3:48pm UTC](https://forum.elixirforum.com/t/liveview-uploads-single-file-allow-to-change-it-before-actual-upload/36020 "2020-12-06T15:48:29Z")

</div>

Hey lovely people! I’m building a very simple uploader, single image file, auto\_upload: false, straight to S3. Now, I want my UI to allow that when people already selected an image that hasn’t been uploaded yet, change…

---

## [Parse the upload instead of writing it to a disk?](https://forum.elixirforum.com/t/parse-the-upload-instead-of-writing-it-to-a-disk/33180)

<div class="topic-metadata">

**Author:** [@smolcatgirl](https://forum.elixirforum.com/u/smolcatgirl)\
**Replies:** 1\
**Last updated:** [July 18, 2020, 3:55pm UTC](https://forum.elixirforum.com/t/parse-the-upload-instead-of-writing-it-to-a-disk/33180 "2020-07-18T15:55:31Z")

</div>

Hi, I have a app that can take uploads like profile pictures. But users should also be able to upload json, xml and csv files with data from other services to import. Right now when a file is uploaded it is written to a…
