Multi File Upload
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.
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?
- It's a file field with multiple files in it. By sending the form, only one file will be submited.
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
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.
Is this feature still in consideration?
Yes, it just is lower in the queue priority since it will need a big rewrite on how the files are being uploaded.