Revision #4 has been created by fezzymalek on Sep 15, 2020, 11:52:55 AM with the memo:
code
« previous (#3) next (#5) »
Changes
Title
unchanged
Api of Multiple File Uploading in Yii2
Category
unchanged
Tutorials
Yii version
unchanged
2.0
Tags
unchanged
File upload,API,Multiple File,Image upload,yii2,REST API
Content
changed
[...]
[['post_id'], 'exist', 'skipOnError' => true, 'targetClass' => Post::className(), 'targetAttribute' => ['post_id' => 'id']],
];
}
```
you can add extension or any skiponempty method also
And this is my controller action where I prformed multiple file uploading
```php
public function actionMultiple(){
$model = new Media;[...]
```
If any query or question I will repond