/Light_AjaxFileUploadManager

A centralized ajax file upload manager for your Light application.

Primary LanguagePHP

Light_AjaxFileUploadManager

2019-08-01 -> 2021-06-29

WARNING: This plugin is deprecated in favor of Light_AjaxHandler.

A centralized ajax file upload manager for your Light application.

This is a Light framework plugin.

This is part of the universe framework.

Install

Using the planet installer via light-cli

lt install Ling.Light_AjaxFileUploadManager

Using the uni command.

uni import Ling/Light_AjaxFileUploadManager

Or just download it and place it where you want otherwise.

Summary

Services

This plugin provides the following services:

  • ajax_file_upload_manager

The ajax_file_upload_manager service is the centralized manager for all the ajax upload files of your Light applications.

Here is an example of service configuration file:

ajax_file_upload_manager:
    instance: Ling\Light_AjaxFileUploadManager\Service\LightAjaxFileUploadManagerService
    methods:
        setApplicationDir:
            dir: ${app_dir}
        setContainer:
            container: @container()
    methods_collection: []

How does it work?

This plugin defines the ajax file upload protocol, and provides tools for implementing it.

The backend implementation is covered entirely by this plugin.

For the js client implementation, we recommend using the js file uploader client, as this plugin has helper methods that facilitate the implementation of the gui side with the js file uploader.

Please refer to the protocol and the auxiliary documents referenced in the summary to get started.

Basically what you want to do is create a configuration item for each ajax upload field that you want, and that's it.

History Log

  • 1.8.16 -- 2021-06-29

    • update easy route namespace (add galaxy prefix)
  • 1.8.15 -- 2021-06-28

    • fix service configuration typo
  • 1.8.14 -- 2021-06-28

    • fix api wrong reference to Ling.Light_Logger
    • update api, now register routes via Ling.Light_EasyRoute open system
  • 1.8.13 -- 2021-05-31

    • Removing trailing plus in lpi-deps file (to work with Light_PlanetInstaller:2.0.0 api
  • 1.8.12 -- 2021-05-11

    • Update deps (by CommitWizard).
  • 1.8.11 -- 2021-05-03

    • Update dependencies to Ling.Light_Logger (pushed by SubscribersUtil)
  • 1.8.10 -- 2021-05-03

    • Update dependencies to Ling.Light_Events (pushed by SubscribersUtil)
  • 1.8.9 -- 2021-05-03

    • Update dependencies to Ling.Light_Events (pushed by SubscribersUtil)
  • 1.8.8 -- 2021-05-03

    • Update dependencies to Ling.Light_Events (pushed by SubscribersUtil)
  • 1.8.7 -- 2021-03-09

    • update planet to adapt Ling.Light:0.70.0, the config/data part (2nd try)
  • 1.8.6 -- 2021-03-05

    • update README.md, add install alternative
  • 1.8.5 -- 2021-02-19

    • upgrade dependencies
  • 1.8.4 -- 2021-02-19

    • upgrade dependencies
  • 1.8.3 -- 2020-12-08

    • Fix lpi-deps not using natsort.
  • 1.8.2 -- 2020-12-04

    • Add lpi-deps.byml file
  • 1.8.1 -- 2020-11-06

    • update api to adapt Bat 1.279
  • 1.8.0 -- 2020-06-04

    • deprecated in favor of ajax handler
  • 1.7.0 -- 2020-02-21

    • reorganized LightAjaxFileUploadManagerService to handle items more efficiently
    • fix csrf_token security leak in item
    • implemented fileEditor protocol extension
  • 1.6.3 -- 2020-01-10

    • fix FileUploadController->uploader showing debug message
  • 1.6.2 -- 2020-01-10

    • fix LightAjaxFileUploadManagerService->validatePhpFileItem not recognizing file extension with different case
  • 1.6.1 -- 2019-11-27

    • fix functional typo csrf_simple instead of csrf_session
  • 1.6.0 -- 2019-11-27

    • use of csrf_session service replaces csrf_simple
  • 1.5.0 -- 2019-11-25

    • now ships with embedded JFileUploader dependency
  • 1.4.0 -- 2019-11-11

    • update FileUploadController->uploader, now dispatches Ling.Light_AjaxFileUploadManager.on_controller_exception_caught event
  • 1.3.0 -- 2019-11-07

    • switch from Light_Csrf to Light_CsrfSimple
  • 1.2.0 -- 2019-10-31

    • add LightAjaxFileUploadManagerService->addConfigurationItemsByFile
  • 1.1.0 -- 2019-10-21

    • added 2svp action list
  • 1.3.0 -- 2019-10-17

    • added Light_UserData system
  • 1.2.1 -- 2019-09-20

    • updated LightAjaxFileUploadManagerService, changed default token name to ajax_file_upload_manager_service
    • fix doc link
  • 1.2.0 -- 2019-08-21

    • now using Light_EasyRoute service to register the routes

    • fix LightAjaxFileUploadManagerRenderingUtil->printField file input name conflicting with ajax generated input

  • 1.1.0 -- 2019-08-07

    • the "db_update" action list now supports the $userId token
  • 1.0.0 -- 2019-08-06

    • initial commit