yii-dream-team / yii2-upload-behavior

Yii2 file/image upload behavior for ActiveRecord
http://yiidreamteam.com/yii2/upload-behavior
MIT License
77 stars 45 forks source link

Can't reset record value of uploaded early file #37

Open g-rodigy opened 2 years ago

g-rodigy commented 2 years ago

How to reset the value of a previously attached file. This code always return old value, why for?

https://github.com/yii-dream-team/yii2-upload-behavior/blob/cdb45e68014476765188c387fafcb7fd30d2ad0a/src/FileUploadBehavior.php#L102-L107