Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

140 lines
8.5 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. # Plupload
  2. Plupload is a cross-browser multi-runtime file uploading API. Basically, a set of tools that will help you to
  3. build a reliable and visually appealing file uploader in minutes.
  4. Historically, Plupload comes from a dark and hostile age of no HTML5, hence all the alternative fallbacks,
  5. like Flash, Silverlight and Java (still in development). It is meant to provide an API, that
  6. will work anywhere and in any case, in one way or another. While having very solid fallbacks, Plupload
  7. is built with the future of HTML5 in mind.
  8. ### Table of Contents
  9. * [Backstory](#backstory)
  10. * [Structure](#structure)
  11. * [File API and XHR L2 pollyfills](https://github.com/moxiecode/moxie/blob/master/README.md)
  12. * [Plupload API](https://github.com/moxiecode/plupload/wiki/API)
  13. * [UI Widget](https://github.com/moxiecode/plupload/wiki/UI.Plupload)
  14. * [Queue Widget](https://github.com/moxiecode/plupload/wiki/pluploadQueue)
  15. * [Demos](https://github.com/jayarjo/plupload-demos/blob/master/README.md)
  16. * [Building Instructions](#building-instructions)
  17. * [Getting Started](https://github.com/moxiecode/plupload/wiki/Getting-Started)
  18. * [Options](https://github.com/moxiecode/plupload/wiki/Options)
  19. * [Events](https://github.com/moxiecode/plupload/wiki/Uploader#wiki-events)
  20. * [Methods](https://github.com/moxiecode/plupload/wiki/Uploader#wiki-methods)
  21. * [Plupload in Your Language](https://github.com/moxiecode/plupload/wiki/Plupload-in-Your-Language)
  22. * [File Filters](https://github.com/moxiecode/plupload/wiki/File-Filters)
  23. * [Image Resizing on Client-Side](https://github.com/moxiecode/plupload/wiki/Image-Resizing-on-Client-Side)
  24. * [Chunking](https://github.com/moxiecode/plupload/wiki/Chunking)
  25. * [Upload to Amazon S3](https://github.com/moxiecode/plupload/wiki/Upload-to-Amazon-S3)
  26. * [FAQ](https://github.com/moxiecode/plupload/wiki/Frequently-Asked-Questions)
  27. * [Support](#support)
  28. * [Create a Fiddle](https://github.com/moxiecode/plupload/wiki/Create-a-Fiddle)
  29. * [Contributing](#contributing)
  30. * [License](#license)
  31. * [Contact Us](http://www.moxiecode.com/contact.php)
  32. ### Backstory
  33. Plupload started in a time when uploading a file in a responsive and customizable manner was a real pain.
  34. Internally, browsers only had the `input[type="file"]` element. It was ugly and clunky at the same time.
  35. One couldn't even change it's visuals, without hiding it and coding another one on top of it from scratch.
  36. And then there was no progress indication for the upload process... Sounds pretty crazy today.
  37. It was very logical for developers to look for alternatives and writing their own implementations, using
  38. Flash and Java, in order to somehow extend limited browser capabilities. And so did we, in our search for
  39. a reliable and flexible file uploader for
  40. our [TinyMCE](http://www.tinymce.com/index.php)'s
  41. [MCImageManager](http://www.tinymce.com/enterprise/mcimagemanager.php).
  42. Quickly enough though, Plupload grew big. It easily split into a standalone project.
  43. With major *version 2.0* it underwent another huge reconstruction, basically
  44. [from the ground up](http://blog.moxiecode.com/2012/11/28/first-public-beta-plupload-2/),
  45. as all the low-level runtime logic has been extracted into separate [File API](http://www.w3.org/TR/FileAPI/)
  46. and [XHR L2](http://www.w3.org/TR/XMLHttpRequest/) pollyfills (currently known under combined name of [mOxie](https://github.com/moxiecode/moxie)),
  47. giving Plupload a chance to evolve further.
  48. ### Structure
  49. Currently, Plupload may be considered as consisting of three parts: low-level pollyfills,
  50. Plupload API and Widgets (UI and Queue). Initially, Widgets were meant only to serve as examples
  51. of the API, but quickly formed into fully-functional API implementations that now come bundled with
  52. the Plupload API. This has been a source for multiple misconceptions about the API as Widgets were
  53. easily mistaken for the Plupload itself. They are only implementations, such as any of you can
  54. build by yourself out of the API.
  55. * [Low-level pollyfills (mOxie)](https://github.com/moxiecode/moxie) - have their own [code base](https://github.com/moxiecode/moxie) and [documentation](https://github.com/moxiecode/moxie/wiki) on GitHub.
  56. * [Plupload API](https://github.com/moxiecode/plupload/wiki/API)
  57. * [UI Widget](https://github.com/moxiecode/plupload/wiki/UI.Plupload)
  58. * [Queue Widget](https://github.com/moxiecode/plupload/wiki/pluploadQueue)
  59. ### Building instructions
  60. Plupload depends on File API and XHR2 L2 pollyfills that currently have their
  61. [own repository](https://github.com/moxiecode/moxie) on GitHub. However, in most cases you shouldn't
  62. care as we bundle the latest build of mOxie, including full and minified JavaScript source and
  63. pre-compiled `SWF` and `XAP` components, with [every release](https://github.com/moxiecode/plupload/releases). You can find everything you may need under `js/` folder.
  64. There are cases where you might need a custom build, for example free of unnecessary runtimes, half the
  65. original size, etc. The difficult part of this task comes from mOxie and its set of additional runtimes
  66. that require special tools on your workstation in order to compile.
  67. Consider [build instructions for mOxie](https://github.com/moxiecode/moxie#build-instructions) -
  68. everything applies to Plupload as well.
  69. First of all, if you want to build custom Plupload packages you will require [Node.js](http://nodejs.org/),
  70. as this is our build environment of choice. Node.js binaries (as well as Source)
  71. [are available](http://nodejs.org/download/) for all major operating systems.
  72. Plupload includes _mOxie_ as a submodule, it also depends on some other repositories for building up it's dev
  73. environment - to avoid necessity of downloading them one by one, we recommended you to simply clone Plupload
  74. with [git](http://git-scm.com/) recursively (you will require git installed on your system for this operation
  75. to succeed):
  76. ```
  77. git clone --recursive https://github.com/moxiecode/plupload.git
  78. ```
  79. And finalize the preparation stage with: `npm install` - this will install all additional modules, including those
  80. required by dev and test environments. In case you would rather keep it minimal, add a `--production` flag.
  81. *Note:* Currently, for an unknown reason, locally installed Node.js modules on Windows, may not be automatically
  82. added to the system PATH. So, if `jake` commands below are not recognized you will need to add them manually:
  83. ```
  84. set PATH=%PATH%;%CD%\node_modules\.bin\
  85. ```
  86. ### Support
  87. We are actively standing behind the Plupload and now that we are done with major rewrites and refactoring,
  88. the only real goal that we have ahead is making it as reliable and bulletproof as possible. We are open to
  89. all the suggestions and feature requests. We ask you to file bug reports if you encounter any. We may not
  90. react to them instantly, but we constantly bear them in my mind as we extend the code base.
  91. In addition to dedicated support for those who dare to buy our OEM licenses, we got
  92. [discussion boards](http://www.plupload.com/punbb/index.php), which is like an enormous FAQ,
  93. covering every possible application case. Of course, you are welcome to file a bug report or feature request,
  94. here on [GitHub](https://github.com/moxiecode/plupload/issues).
  95. Sometimes it is easier to notice the problem when bug report is accompained by the actual code. Consider providing
  96. [a Plupload fiddle](https://github.com/moxiecode/plupload/wiki/Create-a-Fiddle) for the troublesome code.
  97. ### Contributing
  98. We are open to suggestions and code revisions, however there are some rules and limitations that you might
  99. want to consider first.
  100. * Code that you contribute will automatically be licensed under the AGPL, but will not be limited to AGPL.
  101. * Although all contributors will get the credit for their work, copyright notices will be changed to [Moxiecode Systems AB](http://www.moxiecode.com/).
  102. * Third party code will be reviewed, tested and possibly modified before being released.
  103. These basic rules help us earn a living and ensure that code remains Open Source and compatible with AGPL license. All contributions will be added to the changelog and appear in every release and on the site.
  104. An easy place to start is to [translate Plupload to your language](https://github.com/moxiecode/plupload/wiki/Plupload-in-Your-Language#contribute).
  105. You can read more about how to contribute at: [http://www.plupload.com/contributing](http://www.plupload.com/contributing)
  106. ### License
  107. Copyright 2016, [Ephox](http://www.ephox.com/).
  108. Released under [AGPL-3.0 License](https://github.com/moxiecode/plupload/blob/master/license.txt).
  109. We also provide [commercial license](http://www.plupload.com/commercial.php).