kukrik / qcubed-fileupload
QCubed v4 plugin for created FileUpload
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:qcubed-library
Requires
- php: >=7.4
This package is auto-updated.
Last update: 2025-04-12 17:48:10 UTC
README
QCubed v4 plugin created for FileUpload
Many third-party plugins are difficult or inconvenient to fit for QCubed-4. Here it was decided to build the Fileupload plugin to fit the QCubed-4 framework as much as possible. Here we use javascript, a bit of jquery and PHP.
See FileUploadBase and UploadHandler class for usage and configuration descriptions and use cases.
Requirements
First, you must check whether the conditions are met:
- Does the "upload" directory exist in /project/assets.
- Does the "tmp" directory exist in /project.
- Please check if the constants 'APP_UPLOADS_URL', 'APP_UPLOADS_DIR', 'APP_UPLOADS_TEMP_URL', 'APP_UPLOADS_TEMP_DIR' exist in https://github.com/qcubed-4/application/blob/master/install/project/includes/configuration/active/2directories.cfg.php#L29
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 |
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 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 kukrik/bootstrap
composer require kukrik/select2