{"action":"opened","issue":{"url":"https://api.github.com/repos/towersxu/uploader/issues/1","repository_url":"https://api.github.com/repos/towersxu/uploader","labels_url":"https://api.github.com/repos/towersxu/uploader/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/towersxu/uploader/issues/1/comments","events_url":"https://api.github.com/repos/towersxu/uploader/issues/1/events","html_url":"https://github.com/towersxu/uploader/issues/1","id":394110354,"node_id":"MDU6SXNzdWUzOTQxMTAzNTQ=","number":1,"title":"api","user":{"login":"towersxu","id":4093984,"node_id":"MDQ6VXNlcjQwOTM5ODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4093984?v=4","gravatar_id":"","url":"https://api.github.com/users/towersxu","html_url":"https://github.com/towersxu","followers_url":"https://api.github.com/users/towersxu/followers","following_url":"https://api.github.com/users/towersxu/following{/other_user}","gists_url":"https://api.github.com/users/towersxu/gists{/gist_id}","starred_url":"https://api.github.com/users/towersxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/towersxu/subscriptions","organizations_url":"https://api.github.com/users/towersxu/orgs","repos_url":"https://api.github.com/users/towersxu/repos","events_url":"https://api.github.com/users/towersxu/events{/privacy}","received_events_url":"https://api.github.com/users/towersxu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-26T08:10:01Z","updated_at":"2018-12-26T08:10:01Z","closed_at":null,"author_association":"OWNER","body":"|参数名称|参数类型|默认值|说明|示例|\r\n|-------|-------|-----|---|---|\r\n|uploadPath|string|（无）|上传服务器地址|'http://10.4.86.4:5000/upload/fileUpload'|\r\n|path|string|（无）|后端服务地址|http://localhost:5001/preupload|\r\n|headers|object|(无)|调用后端服务地址\b是带上的header头|{ authrization: bearer xxxx}|\r\n|btnEl|HTMLElement|（无）|上传文件的按钮|document.getElementById('uploader-button1')|\r\n|fileListEl|HTMLElement|（无）|在显示默认上传UI的时候，UI\b显示的位置。|document.getElementById('filelist1')|\r\n|env|string|webui|上传的类型，webui表示web端|webui|\r\n|whiteSuffixList|Array|(无)|上传文件白名单,数组内容为文件后缀名,不传则表示允许上传所有格式的文件，但是会受到服务器白名单的限制。|['jpg', 'png', 'jpeg', 'gif', 'webp']|\r\n|theme|string|default|上传主题，相当于会对所有的元素增加对应此主题的前缀|default|\r\n|accept|string|无|增加到input file中的accept属性，用来控制\b系统文件选择控件|'image/*'|\r\n|multiple|boolean|false|是否允许多选||\r\n|chunkSize|number|5*1024*1024|分片大小, 如果没有特殊情况，建议统一使用5M||\r\n|md5|boolean|true|开始MD5秒传||\r\n|dragUpload|boolean|true|开启拖拽上传||\r\n|customUI|boolean|false|是否使用自定义UI,如果为true,则不再显示自带的上传UI||\r\n|showUI|boolean|false|是否默认显示上传UI，默认false,在文件\b被选中后显示上传UI||\r\n|minified|boolean|false|在showUI为true的时候，可以让UI为默认收起的模式||\r\n|handleFiles|function||钩子函数,选中文件后\b触发,参数为files和next,可以在这个函数在对选中的文件在上传之前，进行过滤，修改等操作，注意，在操作完成后需要调用next才能继续|function (files, next) {next()}|\r\n|isGetFileDetail|boolean|false|是否获取文件的详情信息。默认情况下,上传成功后文件服务器只会返回一个文件id，如果设置为true,上传控件会在上传成功后向后台自动发起一个请求，这个请求会自动触发文件的转码，如果文件已经被转码，则会返回文件的详情信息。url,downloadUrl,thumbnail等。这个也可以由后端自己去触发||\r\n|detailPath|string||在isGetFileDetail设置为true的时候，需要传递detailPath.|http://10.4.86.4:5001/fileDetail|\r\n"}}
{"actor":{"display_login":"towersxu"}}