library vps-uploader
File uploader.
pulsarvp/vps-uploader
File uploader.
- Thursday, May 18, 2017
- by witzawitz
- Repository
- 4 Watchers
- 0 Stars
- 8 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 0 % Grown
About
This is file uploader developed specially for CIET MIPT projects. You can use it at your own risk!, (*1)
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):///., (*2)
Requirements
You should include Flow.js library and CSS and JS file from Jasny Bootstrap., (*3)