All Projects → ax5ui → Ax5ui Uploader

ax5ui / Ax5ui Uploader

Licence: mit
jQuery file uploader, HTML5(IE9+, FF, Chrome, Safari) - http://ax5.io/ax5ui-uploader/

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Ax5ui Uploader

Bootstrap Iconpicker
A simple icon picker
Stars: ✭ 344 (+1276%)
Mutual labels:  npm, bower, bootstrap, jquery
Bootstrap Fileinput
An enhanced HTML 5 file input for Bootstrap 5.x/4.x./3.x with file preview, multiple selection, and more features.
Stars: ✭ 5,097 (+20288%)
Mutual labels:  bower, bootstrap, jquery
100 Days Of Code Frontend
Curriculum for learning front-end development during #100DaysOfCode.
Stars: ✭ 2,419 (+9576%)
Mutual labels:  npm, bootstrap, jquery
Nodejs Socketio Chat App
MEAN Stack & Socket.IO Real-time Chat App | A MEAN stack based Real Time chat application
Stars: ✭ 45 (+80%)
Mutual labels:  npm, bootstrap, jquery
Multiple Dates Picker For Jquery Ui
MDP is a little plugin that enables jQuery UI calendar to manage multiple dates.
Stars: ✭ 256 (+924%)
Mutual labels:  npm, bower, jquery
Bower Material
This repository is used for publishing the AngularJS Material v1.x library
Stars: ✭ 510 (+1940%)
Mutual labels:  npm, bower
Inlineattachment
Easily paste and upload files/images in plain textareas
Stars: ✭ 597 (+2288%)
Mutual labels:  npm, bower
Simplestatemanager
A responsive state manager which allows you to run different javascript at different browser widths
Stars: ✭ 632 (+2428%)
Mutual labels:  npm, bower
Javaquarkbbs
基于Spring Boot实现的一个简易的Java社区
Stars: ✭ 755 (+2920%)
Mutual labels:  bootstrap, jquery
Ignite Ui
Ignite UI by Infragistics
Stars: ✭ 468 (+1772%)
Mutual labels:  bower, jquery
Jquery Smartwizard
The awesome jQuery step wizard plugin
Stars: ✭ 635 (+2440%)
Mutual labels:  bootstrap, jquery
Inspinia
This is only a copy of INSPINIA - Responsive Admin Theme
Stars: ✭ 755 (+2920%)
Mutual labels:  bootstrap, jquery
Jtsage Datebox
A multi-mode date and time picker for Bootstrap (3&4), jQueryMobile, Foundation, Bulma, FomanticUI, and UIKit (or others)
Stars: ✭ 481 (+1824%)
Mutual labels:  bootstrap, jquery
Pro Sidebar Template
Responsive sidebar template based on bootstrap
Stars: ✭ 623 (+2392%)
Mutual labels:  bootstrap, jquery
Bugcatcher
方便产品、开发、测试三方协同管理、测试、监控项目进度和质量,以持续交付。
Stars: ✭ 472 (+1788%)
Mutual labels:  bootstrap, jquery
Mobirise
Free Website Builder for Bootstrap 4 & AMP
Stars: ✭ 664 (+2556%)
Mutual labels:  bootstrap, jquery
Raytools
A very simple lightweight jQuery Data Grid table that uses jQuery & Bootstrap.
Stars: ✭ 5 (-80%)
Mutual labels:  bootstrap, jquery
Hospital Management System
"Health Care hospital" Management System is designed for manage details about hospital patient,employee and rooms(10). Designed by using HTML / CSS / JS / JQUERY/ PHP (procedural php) / MYSQL.
Stars: ✭ 5 (-80%)
Mutual labels:  bootstrap, jquery
Instantbootstrap
Instant Bootstrap is a quick and easy way to start creating bootstrap themes using LESS, SASS, GRUNT, and BOWER.
Stars: ✭ 5 (-80%)
Mutual labels:  bower, bootstrap
Declarativ
A declarative HTML rendering library that is definitely not JSX.
Stars: ✭ 16 (-36%)
Mutual labels:  npm, jquery

Build Status npm version

ax5ui-uploader

"uploader" allows users to upload single or multiple files with item selection.

ax5uploader

Dependencies

Install with bower

bower install ax5ui-uploader

bower is web front-end package manager. When you install bower, it will be installed under the bower_components folder to resolve the plug-in dependencies.
(You can change the folder location. .bowerrc )

It is recommended that you install by using bower. If you've never used bower, please refer to http://bower.io/#install-bower.

Install with npm

If you do not use bower, it also can be installed by using npm as an alternative. In case of npm, which is the package manager for the front end, you need to solve the problem of plug-in dependencies.

npm install jquery
npm install ax5core
npm install ax5ui-uploader

After downloading the install file of npm, you will need to copy it to the location where you want to use as a resource for the project. If the copy process is inconvenient, it also can be done easily by using gulp or grunt.

Download code

Insert "ax5uploader" in HTML HEAD.

Folder location can be any for your project. However, please be sure to assign the right path in the project.

<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/ax5ui/ax5ui-uploader/master/dist/ax5uploader.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/ax5ui/ax5core/master/dist/ax5core.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/ax5ui/ax5ui-uploader/master/dist/ax5uploader.min.js"></script>

CDN urls This is a list of CDN urls for ax5ui-uploader. ax5ui offers the CDN services through rawgit.

https://cdn.rawgit.com/ax5ui/ax5ui-uploader/master/dist/ax5uploader.css
https://cdn.rawgit.com/ax5ui/ax5ui-uploader/master/dist/ax5uploader.js
https://cdn.rawgit.com/ax5ui/ax5ui-uploader/master/dist/ax5uploader.min.js

Basic Usage

<div data-ax5uploader="upload1">
    <input type="hidden" name="param1" value="value1"/>
    <input type="hidden" name="param2" value="value2"/>
    <button data-ax5uploader-button="selector" class="btn btn-primary">파일선택 (*/*)</button>
    <div data-uploaded-box="upload1" data-ax5uploader-uploaded-box="inline"></div>
</div>
$(function () {
    var upload1 = new ax5.ui.uploader();
    upload1.setConfig({
        //debug: true,
        target: $('[data-ax5uploader="upload1"]'),
        form: {
            action: "api/fileUpload.php",
            fileName: "fileData"
        },
        multiple: true,
        manualUpload: false,
        direction: "left",
        progressBox: true,
        dropZone: $('[data-uploaded-box="upload1"]'),
        uploadedBox: {
            target: $('[data-uploaded-box="upload1"]'),
            icon: {
                "download": '<i class="fa fa-download" aria-hidden="true"></i>',
                "delete": '<i class="fa fa-minus-circle" aria-hidden="true"></i>'
            },
            columnKeys: {
                name: "name",
                type: "type",
                size: "fileSize",
                uploadedName: "uploadedName",
                uploadedPath: "uploadedPath",
                downloadPath: "downloadPath",
                previewPath: "previewPath",
                thumbnail: "thumbnail"
            },
            lang: {
                supportedHTML5_emptyListMsg: '<div class="text-center">Drop files here or click to upload.</div>',
                emptyListMsg: '<div class="text-center">Empty of List.</div>'
            },
            onchange: function () {

            },
            onclick: function () {
                // console.log(this.cellType);
                var fileIndex = this.fileIndex;
                var file = this.uploadedFiles[fileIndex];
                switch (this.cellType) {
                    case "delete":
                        dialog.confirm({
                            title: "AX5UI",
                            msg: "정말 삭제 하시겠습니까?"
                        }, function () {
                            if (this.key == "ok") {
                                $.ajax({
                                    method: "post",
                                    url: "api/fileDelete.php",
                                    data: {
                                        uploadedPath: file.uploadedPath,
                                        saveName: file.saveName
                                    },
                                    success: function (res) {
                                        upload1.removeFile(fileIndex);
                                    }
                                });
                            }
                        });
                        break;

                    case "download":
                        window.open(file.uploadedPath + "/" + file.saveName, "_blank", "width=600, height=600");
                        break;
                }
            }
        },
        onprogress: function () {

        },
        onuploaded: function () {

        },
        onuploadComplete: function () {

        }
    });

    $.ajax({
        url: "api/fileListLoad.php",
        success: function (res) {
            upload1.setUploadedFiles(res);
        }
    });
});

Preview

If you have any questions, please refer to the following gitHub

Question

axisj-contributed

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].