---
title: "Yosua Wijaya (@yosuaw) | Hashnode"
description: "Yosua Wijaya (@yosuaw) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@yosuaw"
---

@yosuaw

# Yosua Wijaya

@yosuaw · Joined December 2024

## Comments

[For anyone who is looking for a way to change the :uploads assigns to set the max\_entries property, we can use Map.put to update the entire assigns socket on maybe\_update\_upload\_config/2, something like this: defp maybe\_update\_upload\_config(socket, max\_entries) do config = Map.get(socket.assigns.uploads, :images) new\_uploads = Map.put(socket.assigns.uploads, :images, %{config | max\_entries: max\_entries}) new\_assign = Map.put(socket.assigns, :uploads, new\_uploads) Map.put(socket, :assigns, new\_assign) end](https://hashnode.com/posts/editing-forms-with-live-file-input/646cd3e1f419f3d1c1b5aaa6/comment/674eee15e4d3529f6bf3ae16)

Comment · Article · Dec 3, 2024 · [Editing forms with live\_file\_input](https://hashnode.com/posts/editing-forms-with-live-file-input/646cd3e1f419f3d1c1b5aaa6)
