xpertbot / craft-wheelform

Craft CMS 4 Form with Database integration
MIT License
66 stars 32 forks source link

Multi File Upload #149

Open wedot opened 5 years ago

wedot commented 5 years ago

Hello

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

xpertbot commented 5 years ago

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 commented 5 years ago
  1. It's a file field with multiple files in it. By sending the form, only one file will be submited.
wedot commented 5 years ago

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 commented 5 years ago

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 commented 4 years ago

Is this feature still in consideration?

xpertbot commented 4 years ago

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