Skip to content

fileColumn

fileColumn

Requests

  • multiple files
  • optional modal format (default fluid)
  • delete file option
  • cleanup extensions when using ID number (option using key should be able to set ID)
  • full screen preview (change iframe to position fixed, height 90%, width 60%, trbl=0, margin: auto.
  • toggle full screen
  • option to use original filename

Setup

Example of page initialization to load library.

    use function vnix\cdn;
    use vnix\Cloud\io_cloud;

    /**
     * @aex index
     */
    class io extends io_cloud
    {

        final protected function P000_Init()
        {
            cdn()->enableBase()->enableVnix110()->enable(['mdb_fileupload']);
        }

    }

Examples

From Timeline

    $this->form1q->fileColumn('image', 'Image', [
        'pxHeight' => 400,
        'pxWidth' => 800,
        'cdn' => 'https://ximg.co/timeline',
        'upload' => [
            'host' => 'bsd165-bct',
            'root' => '/www/ximg.co/timeline',
            'path' => '/uploaded',
            'file' => $this->form1->keyID(),
        ],
    ]);