cvkmohan

cvkmohan

Anyone felt the need for shrinerb/shrine: File Attachment toolkit for Ruby applications (github.com) sort of a library in Phoenix?
There is elixir-waffle/waffle: Flexible file upload and attachment library for Elixir (github.com) - but - not actively maintained - and - not LiveView compatible.
Phoenix LiveView does support File Uploads in a very beautiful way - it supports drag and drop, upload progress and cancel partial uploads etc. - but - boilerplate code is necessary to process the uploaded file into even local system.
Rails has two main solutions to the same problem. Rails framework itself supports ActiveStorage and then we have Shrine. Adding a file to a model is as simple as declaring any other attribute. Image Processing, Cloud Storage, Updating the Model with processed file string are all supported - and - via plugins.
Do you think such a library will help in Phoenix as well? Or there any limitations due to immutability etc.? Shrine supports ROM also which is similar to Ecto. So, in my view there should not be any issues.
But, I would want to hear your thoughts.
What problems do you perceive, if we mimic and translate Shrine into elixir?

Showing Posts 1 to 3

karlosmid

karlosmid

Hi, maybe arc-ecto could help you:
https://github.com/stavro/arc_ecto

kokolegorille

kokolegorille

I am using live file upload with waffle and waffle-ecto.

Rails use polymorphic links (type + id)

I think arc is even less maintained than waffle :slight_smile:

cvkmohan

cvkmohan OP

@karlosmid - waffle is a clone of arc - because arc was not being maintained.
@kokolegorille -

  1. any github/gist links for the setup with LiveView and Waffle?
  2. I agree - polymorphic links can be a bottleneck.
    Personally, I feel waffle itself needs an upgrade - It should include akash-akya/vix: Elixir extension for libvips (github.com) or kipcole9/image: Image processing for Elixir (github.com) and delegate image processing to such libraries. A few more requirements as well. Let me see if I can get inspired from all these resources and produce something useful.
— All posts loaded —

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 92995 915
New
caslu
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
GES233
I’m posting this in response to Jose’s recent tweet (Cr. link) : People are sleeping on Elixir for a coding harness: Hot-code swappi...
New
_mfierro
Hello, I wrote Stop My Hand, a Scattergories-like web application using Phoenix/LiveView as my learning project for Elixir (after readin...
New
marciol
It would be helpful to have a list of companies worldwide that hire engineers without prior experience in Elixir. Often, it can be quite ...
New
durvia
Anyone running long-lived stateful processes on BEAM? We’re building an AI agent runtime and would love to compare notes. We’re a small ...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews