-
-
Notifications
You must be signed in to change notification settings - Fork 356
Dropzone: handle multiple files #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yep, that's a good idea! I'm not sure how to handle it properly yet but that's a good idea :) |
Probably like https://www.dropzonejs.com, with multiple query in ajax for upload each image and return a valid or error response. |
* /Users/dunglas/workspace/hotwire-bundle: prepare merge in symfony/ux tweaking how the cloned form is used in the docs (symfony#12) updating stream media type to match changes in Turbo (symfony#11) ci: setup GitHub Actions (symfony#8) fix: regressions introduced in #5 (symfony#7) Relax minimum php version (#5) fix: various quality improvements (symfony#6) test: add UI tests (#4) ci: add PHPStan ci: add PHP-CS-Fixer refactor: broadcast template conventions and config refactor: decouple Broadcast from Twig and Mercure feat: initial implementation
is Multiple Files allowed or not yet ? |
I plan to make multiple and chunked file uploads in one of my pilot project. At this moment I don't find any "official" direction about templating of UX modules (small prototypes). This is problem at my symfony collection type ux module too. |
Hello, |
Hello, someone have the solution to do multiple upload? |
Hello, You can see how I make it work there https://github.com/yassinehamouten/ux-dropzone-multiple/tree/main/Resources. I tried to do it as a package, but stimulus does not call my controller. If someone has an idea... I changed:
You can change the symfony ux-dropzone package and build your js. It will work on production |
thank fou for your work, does it work if you use the DropzoneType:: class in your formType ? |
@yassinehamouten this is interesting, I wasn't sure we could do it with the multiple attribute, good news! That would be a great PR if you wish :) ! |
Adding deterministic data-live-id attribute to child components
@yassinehamouten Would it be ok for you when I create a PR with your changes? |
hello
not sure what your are talking about.
best
JML
Le 24 oct. 2022 à 11:13, Marcus Stöhr ***@***.***> a écrit :
@yassinehamouten <https://github.com/yassinehamouten> Would it be ok for you when I create a PR with your changes?
—
Reply to this email directly, view it on GitHub <#7 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AUX2AHWA2VLRZLX3XYAC6IDWEZHLPANCNFSM4UNKKZQA>.
You are receiving this because you commented.
|
i'm interesting, i try it but solution not work... what's the package to install dropzone-multiple? or just replace dropzone ux?? |
I think @yassinehamouten basically forked symfony/ux-dropzone and made some tweaks to make it work with multiple - #7 (comment) - if it's that simple, it would be great if someone made a PR here to add that support :) |
i try to use, this https://github.com/daFish/ux/tree/feat/dropzone-support-multiple-files/src/Dropzone/Resources but it's not work at all...same result, just one picture |
@CodingBDX I have not yet finished the port in the linked PR. But I just rebased my branch and it is now up-to-date. |
Does this mean multiple file upload will be available soon? |
I could certainly need some help with finishing it. |
Is there an update on this topic? It seems not to work out of the box with the current version (2.7.1). |
Hi! We need multiple file upload. Who can help with this? I understand daFish has been developing it, but we need it live? Who on the Symfony development team can help us to work with this? |
Welcome to open source. What's your budget to speed things up? I'm sure @daFish and others would find time to work on work-related things more readily than passion hobbies :-) |
I had a lot of trouble with this solution. I switched to uppy (https://uppy.io/) and it works good with symfony. |
@janklan After some thoughts I'm not going to finish this. It is based upon the work of @yassinehamouten and I'd rather propose to go with uppy.io - which is already mentioned by @igi-1w3r53n. |
Fair enough mate, I've been using Dropzone.js directly myself ever since I found this limitation - pretty much the same day I found this component. For everyone else: all you need to receive multiple files is making sure your JS dropzone component (whichever it is) uploads files individually behind the scene, and then something along this trivial piece: if (0 === $request->files->count()) {
throw new BadRequestException('At least one file is required.');
}
if ($request->files->count() > 1) {
throw new BadRequestException('Uploading multiple files at once is not supported.');
}
$uploadedFile = $request->files->get('file'); I'm honestly not convinced there is a need for an UX component and a dedicated form field for this. What does it actually simplify? |
Is there an update on this topic? I need an option to allow multiple file-uploads using this dropzone-component... |
I don't understand the priorities. They should be:
etc. |
I find myself saying this more often than I like: welcome to open source. Feel free to contribute a solution to a real-world problem you're experiencing. It's not easy, which is the reason why there are more takers than givers. If it helps you do your job and make a living, don't give advice how things should be, and give your time and skills instead :) |
Sorry, I am not a back-end developer, so I can't help build it, and I am not here to criticize. However, I can suggest a direction and discuss the need from my personal perspective. With my experience of 20 years in web development, I believe the UX project requires a significant change in direction. One possible approach is to engage the community by allowing them to vote for UI elements. Those who have the time and expertise can contribute to building it. Votes will define the priorities. I do understand that you will need to figure out the message to send and motivate voters. Here's an example: https://community.talk.hyvor.com/. This platform utilizes https://www.featurebase.app/ for feature voting. |
The end goal here is to establish Symfony as a prominent PHP web application framework in the market? |
@daFish had done most of the work. The problem is only on the preview because ux-dropzone manage already multiple files |
It would be nice if Dropzone could handle multiple files.
I was expecting it would as its parent type is the FileType, that allows setting
multiple
option totrue
.The text was updated successfully, but these errors were encountered: