{"id":25119051,"url":"https://github.com/ax5ui/ax5ui-uploader","last_synced_at":"2025-04-22T19:07:25.608Z","repository":{"id":57188529,"uuid":"68826076","full_name":"ax5ui/ax5ui-uploader","owner":"ax5ui","description":"jQuery file uploader, HTML5(IE9+, FF, Chrome, Safari) - http://ax5.io/ax5ui-uploader/","archived":false,"fork":false,"pushed_at":"2019-04-10T03:52:15.000Z","size":764,"stargazers_count":26,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T19:07:19.113Z","etag":null,"topics":["ax5core","ax5ui-uploader","bootstrap","bower","javascript","jquery","npm","uploade","uploader"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ax5ui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-21T14:37:03.000Z","updated_at":"2023-12-25T10:06:26.000Z","dependencies_parsed_at":"2022-08-30T14:51:21.295Z","dependency_job_id":null,"html_url":"https://github.com/ax5ui/ax5ui-uploader","commit_stats":null,"previous_names":[],"tags_count":250,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax5ui%2Fax5ui-uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax5ui%2Fax5ui-uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax5ui%2Fax5ui-uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax5ui%2Fax5ui-uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ax5ui","download_url":"https://codeload.github.com/ax5ui/ax5ui-uploader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250306639,"owners_count":21408926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ax5core","ax5ui-uploader","bootstrap","bower","javascript","jquery","npm","uploade","uploader"],"created_at":"2025-02-08T04:32:39.491Z","updated_at":"2025-04-22T19:07:25.574Z","avatar_url":"https://github.com/ax5ui.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/ax5ui/ax5ui-uploader.svg?branch=master)](https://travis-ci.org/ax5ui/ax5ui-uploader)\n[![npm version](https://badge.fury.io/js/ax5ui-uploader.svg)](https://badge.fury.io/js/ax5ui-uploader)\n[![](https://img.shields.io/npm/dm/ax5ui-uploader.svg)](https://www.npmjs.com/package/ax5ui-uploader)\n\n# ax5ui-uploader\n\"uploader\" allows users to upload single or multiple files with item selection.\n\n![ax5uploader](src/ax5uploader.gif)\n\n\u003e *Dependencies*\n\u003e * _[jQuery 1.X+](http://jquery.com/)_\n\u003e * _[ax5core](http://ax5.io/ax5core)_\n\n### Install with bower\n```sh\nbower install ax5ui-uploader\n```\n[bower](http://bower.io/#install-bower) is web front-end package manager.\nWhen you install `bower`, it will be installed under the `bower_components` folder to resolve the plug-in dependencies.  \n(You can change the folder location. [.bowerrc](http://bower.io/docs/config/#bowerrc-specification) )\n\nIt is recommended that you install by using `bower`. \nIf you've never used bower, please refer to [http://bower.io/#install-bower](http://bower.io/#install-bower).\n\n### Install with npm\nIf you do not use bower, it also can be installed by using npm as an alternative.\nIn case of npm, which is the package manager for the front end, you need to solve the problem of plug-in dependencies.\n\n```sh\nnpm install jquery\nnpm install ax5core\nnpm install ax5ui-uploader\n```\n\nAfter 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.\nIf the copy process is inconvenient, it also can be done easily by using `gulp` or `grunt`.\n\n### Download code\n- [ax5core Github releases](https://github.com/ax5ui/ax5core/releases)\n- [ax5ui-uploader Github releases](https://github.com/ax5ui/ax5ui-uploader/releases)\n\n\n### Insert \"ax5uploader\" in HTML HEAD.\n\nFolder location can be any for your project. However, please be sure to assign the right path in the project.\n\n```html\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.rawgit.com/ax5ui/ax5ui-uploader/master/dist/ax5uploader.css\" /\u003e\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"https://cdn.rawgit.com/ax5ui/ax5core/master/dist/ax5core.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"https://cdn.rawgit.com/ax5ui/ax5ui-uploader/master/dist/ax5uploader.min.js\"\u003e\u003c/script\u003e\n```\n\n**CDN urls**\nThis is a list of CDN urls for ax5ui-uploader. ax5ui offers the CDN services through rawgit.\n```\nhttps://cdn.rawgit.com/ax5ui/ax5ui-uploader/master/dist/ax5uploader.css\nhttps://cdn.rawgit.com/ax5ui/ax5ui-uploader/master/dist/ax5uploader.js\nhttps://cdn.rawgit.com/ax5ui/ax5ui-uploader/master/dist/ax5uploader.min.js\n```\n\n### Basic Usage\n```html\n\u003cdiv data-ax5uploader=\"upload1\"\u003e\n    \u003cinput type=\"hidden\" name=\"param1\" value=\"value1\"/\u003e\n    \u003cinput type=\"hidden\" name=\"param2\" value=\"value2\"/\u003e\n    \u003cbutton data-ax5uploader-button=\"selector\" class=\"btn btn-primary\"\u003e파일선택 (*/*)\u003c/button\u003e\n    \u003cdiv data-uploaded-box=\"upload1\" data-ax5uploader-uploaded-box=\"inline\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\n```js\n$(function () {\n    var upload1 = new ax5.ui.uploader();\n    upload1.setConfig({\n        //debug: true,\n        target: $('[data-ax5uploader=\"upload1\"]'),\n        form: {\n            action: \"api/fileUpload.php\",\n            fileName: \"fileData\"\n        },\n        multiple: true,\n        manualUpload: false,\n        direction: \"left\",\n        progressBox: true,\n        dropZone: $('[data-uploaded-box=\"upload1\"]'),\n        uploadedBox: {\n            target: $('[data-uploaded-box=\"upload1\"]'),\n            icon: {\n                \"download\": '\u003ci class=\"fa fa-download\" aria-hidden=\"true\"\u003e\u003c/i\u003e',\n                \"delete\": '\u003ci class=\"fa fa-minus-circle\" aria-hidden=\"true\"\u003e\u003c/i\u003e'\n            },\n            columnKeys: {\n                name: \"name\",\n                type: \"type\",\n                size: \"fileSize\",\n                uploadedName: \"uploadedName\",\n                uploadedPath: \"uploadedPath\",\n                downloadPath: \"downloadPath\",\n                previewPath: \"previewPath\",\n                thumbnail: \"thumbnail\"\n            },\n            lang: {\n                supportedHTML5_emptyListMsg: '\u003cdiv class=\"text-center\"\u003eDrop files here or click to upload.\u003c/div\u003e',\n                emptyListMsg: '\u003cdiv class=\"text-center\"\u003eEmpty of List.\u003c/div\u003e'\n            },\n            onchange: function () {\n\n            },\n            onclick: function () {\n                // console.log(this.cellType);\n                var fileIndex = this.fileIndex;\n                var file = this.uploadedFiles[fileIndex];\n                switch (this.cellType) {\n                    case \"delete\":\n                        dialog.confirm({\n                            title: \"AX5UI\",\n                            msg: \"정말 삭제 하시겠습니까?\"\n                        }, function () {\n                            if (this.key == \"ok\") {\n                                $.ajax({\n                                    method: \"post\",\n                                    url: \"api/fileDelete.php\",\n                                    data: {\n                                        uploadedPath: file.uploadedPath,\n                                        saveName: file.saveName\n                                    },\n                                    success: function (res) {\n                                        upload1.removeFile(fileIndex);\n                                    }\n                                });\n                            }\n                        });\n                        break;\n\n                    case \"download\":\n                        window.open(file.uploadedPath + \"/\" + file.saveName, \"_blank\", \"width=600, height=600\");\n                        break;\n                }\n            }\n        },\n        onprogress: function () {\n\n        },\n        onuploaded: function () {\n\n        },\n        onuploadComplete: function () {\n\n        }\n    });\n\n    $.ajax({\n        url: \"api/fileListLoad.php\",\n        success: function (res) {\n            upload1.setUploadedFiles(res);\n        }\n    });\n});\n```\n\n- - -\n\n### Preview\n- [See Demonstration](http://ax5.io/ax5ui-uploader/demo/index.html)\n\nIf you have any questions, please refer to the following [gitHub](https://github.com/ax5ui/ax5ui-kernel)\n\n## Question\n- https://jsdev.kr/c/axisj/ax5ui\n- https://github.com/ax5ui/ax5ui-kernel/issues\n\n[![axisj-contributed](https://img.shields.io/badge/AXISJ.com-Contributed-green.svg)](https://github.com/axisj) ![](https://img.shields.io/badge/Seowoo-Mondo\u0026Thomas-red.svg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fax5ui%2Fax5ui-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fax5ui%2Fax5ui-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fax5ui%2Fax5ui-uploader/lists"}