coresky/upload

Prod-ware for file uploads

0.546 2024-07-24 13:29 UTC

This package is auto-updated.

Last update: 2024-10-24 14:05:53 UTC


README

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

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:
..