-
-
Notifications
You must be signed in to change notification settings - Fork 579
[Question] How manage multiple upload file in forms? #1770
Comments
I have the same problem. But i was able to get it working by getting the image directly from the So something like |
Hello, I found myself in this exact situation, it would be great that buffalo supports multiples files. As a workaround, I had to implement a custom Bind, like:
|
I was looking into "file_request_type_binder.go" and I did some tweaks in order to support "[]binding.File{}", it seems to work with a couple of tests that I did locally, but I'm not sure if this should solve the issue.
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
Description
Is there any way to manage multiple upload file in a form?
Steps to Reproduce the Problem
I try this way:
<%= f.FileTag("ImagesForm", {multiple:"multiple"}) %>
Expected Behavior
I need that the slice with images paths must be saved in the Images field of the model.
Actual Behavior
The images var is always null.
Info
The text was updated successfully, but these errors were encountered: