Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

⚠️ Deprecated. Use package @codexteam/ajax instead!

codex.transport

One click file uploader

Usage

transport.init({
   url: '/ajax/transport',
   multiple: true,
   accept: 'image/*',
   data: {},
   before: function () {},
   progress: function (percentage) {
       console.log(percentage + '%');
       // ...
   },
   success: function (response) {
       console.log(response);
       // ...
   },
   error: function (response) {
       console.log(response);
       // ...
   },
   after: function () {},
});

You can handle all of this event like:

  • what should happen before data sending with XMLHTTP
  • what should after success request
  • error handler

About

One click file uploader

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.