2amigos / yii2-file-upload-widget

BlueImp File Upload Widget for Yii2
Other
252 stars 140 forks source link

maxFileSize does it do anything? #91

Open katag9k opened 7 years ago

katag9k commented 7 years ago

I can set maxFileSize to 1 and i can still upload files until I hit the php limit. Is this something that needs to be handled manually? I sort of assumed this would render a hidden input field with MAX_FILE_SIZE set as per the option?

'clientOptions' => [
    'maxFileSize'      => 1,
    'multiple'         => false,
    'maxNumberOfFiles' => 1,
    'autoUpload'=>true
]
tonydspaniard commented 7 years ago

If you were to use one file to upload... not sure the multiple file uploader is the best option. why not using the basic uploader? https://github.com/2amigos/yii2-file-upload-widget#blueimp-file-upload-widget-for-yii2