coresky/upload

Prod-ware for file uploads

0.514 2023-10-25 08:17 UTC

This package is auto-updated.

Last update: 2024-04-04 13:24:55 UTC


README

Production ware. Use this product if your app need upload files. Custom croping images included.

Essence Count
Installer class present (upload\ware)
w3 class 1 (upload\ant)
Controller 1, tune used
Model 1
Jet templates 2
Table in the database 1, custom name
dd drivers support 2 (sqlite3, mysqli) for now
Asset files 1 (upload.js)

Status: under development

Rewrite for a_.. actions:

if ($cnt && 'upload' == $surl[0]) {
    common_c::$tune = array_shift($surl);
    $cnt--;
}

Attach upload.js:

Add on the backend:

# place upload.js to the tail
upload\ant::init();
# or place upload.js to the head
upload\ant::init('head');

Where 'upload' - tuning value (any of /^[\w+\-]+$/)

Improvement for MySQL

-- use enum for object's types:
ALTER TABLE tblname CHANGE `obj` `obj` enum('com','per','prj','act','face') DEFAULT NULL,
-- add a index:
..