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

Update FileUploadBehavior.php #8

Closed mydesign closed 8 years ago

mydesign commented 9 years ago

uniq filename need for universal

metalagman commented 9 years ago

I think it won't work properly because resolvePath is being called many times and you'll get different value in every call.

metalagman commented 8 years ago

it won't work, because file path resolvers will give you unique names every time it is called