yii2-attachments
yii2-attachments copied to clipboard
Yii2 extension for uploading and attaching the files to the models
Is there a way to configure upload and temp path per model. For example when i attach files to user i need to have path like avatars/user1/... and on documents...
if the file name is chinese, for example: 中文文件名测试.jpg add '_' to the file name when saving it to the move it to the temp folder. remove the first '_'...
This allows image displaying inline instead of forcing download
For Latest Version you may get problem with Class **AttachmentsInput** its dependency for use yii\bootstrap\Widget; Fix it with Use: use yii\bootstrap5\Widget; mention the verstion of bootsrtap class
Updating to latest version on debian 11 with php 7.4 raised an error about function str_constrains() not found. It's a function introduced in php 8.0 The composer.json should be changed...