Skip to content
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

Multi File Upload #149

Open
wedot opened this issue Sep 9, 2019 · 6 comments
Open

Multi File Upload #149

wedot opened this issue Sep 9, 2019 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@wedot
Copy link

wedot commented Sep 9, 2019

Hello

I think i have found some bugs and things to improve, hope that I have explained everything understandable:

  • I have the problem that only the first file in the file upload field is sent. all other selected files will not be delivered to the server.
  • And if the file(s) are to large i get a error from craft (HTTP 400 – Bad Request – yii\web\BadRequestHttpException) and not a error from wheelform.
  • When sending the form, it unfortunately deletes the file from the file field if there is an error.
@xpertbot xpertbot self-assigned this Sep 9, 2019
@xpertbot xpertbot added the bug Something isn't working label Sep 9, 2019
@xpertbot
Copy link
Owner

xpertbot commented Sep 9, 2019

Can you give me more details? like is multiple file fields being uploaded or just using one and expecting multiple files off that single field? Also, Can you give me the whole Craft error that's inside the logs?

@wedot
Copy link
Author

wedot commented Sep 9, 2019

  1. It's a file field with multiple files in it. By sending the form, only one file will be submited.

@wedot
Copy link
Author

wedot commented Sep 10, 2019

I get this errors:

[2019-09-10 08:21:22 [-][-][d0crq044essiqmeub1k61mshj4][error][yii\web\HttpException:400] yii\web\BadRequestHttpException: Es ist nicht möglich, Ihre Dateneingabe zu prüfen. in /Users/AS/_localhost/_webTPL/seriousTPL/vendor/yiisoft/yii2/web/Controller.php:166

2019-09-10 08:21:22 [-][-][d0crq044essiqmeub1k61mshj4][trace][yii\base\View::renderFile] Rendering view file: /Users/AS/_localhost/_webTPL/seriousTPL/vendor/yiisoft/yii2/views/errorHandler/exception.php]

An idea:
It would also be great to be able to specify the maximum data size which can be uploaded

@xpertbot xpertbot added enhancement New feature or request and removed bug Something isn't working labels Sep 12, 2019
@xpertbot
Copy link
Owner

Ok, I took a shot at this and this will be much harder than expected; because of the way Craft handles uploading files to Asset folders.... I might work on it on my free time meanwhile it might be easier to just create multiple single file fields.

@timbertens
Copy link
Contributor

Is this feature still in consideration?

@xpertbot
Copy link
Owner

Yes, it just is lower in the queue priority since it will need a big rewrite on how the files are being uploaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants