miptliot / vps-uploader
This package is abandoned and no longer maintained.
The author suggests using the pulsarvp/vps-uploader package instead.
File uploader.
0.0.6
2016-06-22 17:34 UTC
Requires
- miptliot/vps-tools: >=0.1.5
- yiisoft/yii2: >=2.0.8
- yiisoft/yii2-bootstrap: >=2.0.0
This package is not auto-updated.
Last update: 2022-02-01 12:58:36 UTC
README
This is file uploader developed specially for CIET MIPT projects. You can use it at your own risk!
Table structure
vu_file
- guid - Unique identificator for the file. Also works as filename. Generates randomly.
- path - Path to the file relative to the base datapath directory.
- extension
- name - Original filename.
- status - File status: new, uploading, error, deleted, ok.
- message - Message regarding status. Useful for errors.
- dt - Last file edit dt.
- userID - If you want to relate some user table for this file, use this field.
vu_log
- fileGuid - Relation to file guid.
- status - Last status changed.
- message
- dt - Datetime when status was changed.
- userID - User by which status was changed.
Config
chunksize - File chunk size in bytes to upload large files. Default is 1048576 (1M). extensions - Allowed extensions to load. If null then any extension is allowed. maxsize - Maximum file size to upload. Default is null (unlimited). Format is like 128M. path - Base path to store files. Must be writable. url - Relative URL to build link for file. The full URL look like http(s):///<relative_path_to_file>.
Requirements
You should include Flow.js library and CSS and JS file from Jasny Bootstrap.