Antonio Ramirez
Antonio Ramirez
What I normally do is to create the News model first and then use the file uploader on the 'add media' section when revisiting the data of the news model...
This plugin uses the Yii2 component. We do not do anything to custom registration. I believe you have to look in the configuration of your code.
Have you installed the composer plugin?
Please, try with: https://github.com/blueimp/jQuery-File-Upload/wiki/Options#processqueue Edit: Documentation is wrong, on the client level we need to configure: https://github.com/blueimp/jQuery-File-Upload/wiki/Options#acceptfiletypes
Sample rules: ```php public function rules() { return [ [['image'], 'file', 'skipOnEmpty' => false, 'extensions' => 'png, jpg, jpeg,gif'], ]; }
@bologer do you mind pasting the result HTML, the browser you use and check if your console has any javascript errors?
Strange... if you use the FileUpladAction to your controller should return the validation errors: https://github.com/2amigos/yii2-file-upload-widget/blob/master/src/actions/FileUploadAction.php#L152
please check this comment: https://github.com/2amigos/yii2-file-upload-widget/issues/116#issuecomment-325190725
english? Apologies, but my russian is very poor
have you checked the latest actions i submitted? https://github.com/2amigos/yii2-file-upload-widget/tree/master/src/actions