定制 kukrik/qcubed-fileupload 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kukrik/qcubed-fileupload

Composer 安装命令:

composer require kukrik/qcubed-fileupload

包简介

QCubed-4 plugin for created FileUpload

README 文档

README

QCubed-4 plugin created for FileUpload

Many third-party plugins are difficult or inconvenient to integrate with QCubed-4. In this case, we decided to build the Fileupload plugin to fit the QCubed-4 framework as much as possible. Here we use JavaScript and a bit of jQuery. This plugin works starting from PHP version 8.3+.

See FileUploadBase and UploadHandler class for usage and configuration descriptions and use cases.

Image of kukrik

Requirements

First, you must check whether the conditions are met:

Options

Note: If you want to override some properties, the same properties must be overridden to the same value in FileUpload and Uploadhandler.

The rest of the properties can be set as needed.

Property FileUpload UploadHandler
RootPath APP_UPLOADS_DIR APP_UPLOADS_DIR
RootUrl APP_UPLOADS_URL -
TempPath APP_UPLOADS_TEMP_DIR APP_UPLOADS_TEMP_DIR
TempUrl APP_UPLOADS_TEMP_URL -
StoragePath _files _files
FullStoragePath null null
Language (en, et, ru) en -
ShowIcons false -
AcceptFileTypes null null
MaxNumberOfFiles null -
MaxFileSize null null
MinFileSize null -
ChunkUpload true -
MaxChunkSize 5 MB -
LimitConcurrentUploads 2 -
Url null -
PreviewMaxWidth 80 -
PreviewMaxHeight 80 -
WithCredentials false -
ImageResizeQuality - 85
PngLevel - 6
ImageResizeFunction ( imagecopyresampled or imagecopyresized) - imagecopyresampled
ImageResizeSharpen - true
TempFolders - ['thumbnail', 'medium', 'large']
ResizeDimensions - [320, 480, 1500]
DestinationPath - null
UploadExists (increment or overwrite) - increment

If you have not previously installed QCubed-4 Bootstrap and twitter bootstrap, run the following actions on the command line of your main installation directory by Composer:

    composer require twbs/bootstrap v3.3.7

and

    composer require kukrik/qcubed-fileupload
    composer require qcubed-4/plugin-bootstrap

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-05