Answer the question
In order to leave comments, you need to log in
How to solve ImageUploadBehavior file saving issue?
Problem with ImageUploadBehavior from yii-dream-team/yii2-upload-behavior .
The image file is not saved to a directory.
In this case, the file name is correctly read and written to the database. For example: 15783295728133.jpg
The file goes to $_FILES
@app, @backend, @frontend,
etc. public function behaviors()
{
return [
[
'class' => '\yiidreamteam\upload\ImageUploadBehavior',
'attribute' => 'miniature',
'filePath' => '@backend/web/storage/.',
'fileUrl' => '/storage/.',
],
];
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question