react-upload
来源:互联网 发布:fuse linux 编辑:程序博客网 时间:2024/06/11 23:32
const options = { baseUrl: 'https://dev2.zhishinet.com/api/zcommon/v1/sec/resource', param: {}, chooseAndUpload: true, paramAddToField: {purpose: 'save'}, method: 'POST', accept: 'xls,xlsx', requestHeaders: { 'Authorization': (window as GlobalDefinitions).authorization, }, chooseFile: function (files: any) { console.log('you choose', files, files[0].name) }, beforeUpload: function (files: any, mill: any) { console.log('you beforeUpload ', files); if (files[0].size < 1024 * 1024 * 20) { files[0].mill = mill return true; } else { return false; } ; }, doUpload: function (files: any, mill: any) { console.log('you doUpload ') console.log('you just uploaded', typeof files == 'string' ? files : files[0].name) }, uploadSuccess: function (resp: any) { console.log('you just uploadSuccess ', resp) message.success('This is a message of uploadSuccess '); selfThis.verifyFileExcel(resp.resourceId); }, uploadError: function (err: any) { message.error('This is a message of uploadError'); }, uploadFail: function (resp: any) { message.warning('This is message of uploadFail '); } };
阅读全文
0 0
- react-upload
- upload?
- upload
- upload
- upload
- upload
- upload
- upload
- upload
- Upload
- upload
- Upload
- upload
- react-core-image-upload:轻量级的图片上传裁剪组件
- react native com.android.ddmlib.InstallException: Unable to upload some APKs我踩过的坑
- react使用阿里云对象存储,ali-oss, antd upload to ali-oss
- upload.aspx
- asp Upload
- 阿里云公网产品正确使用姿势节省50%成本秘诀-PPT和演讲文字实录
- Redis 持久化RDB和AOF原理
- 这个叫产品经理的是干什么的?
- Android 上下滚动的新闻效果
- Maven项目出现Perhaps you are running on a JRE rather than a JDK?
- react-upload
- Java的垃圾回收机制(GC)总结
- BCG Getting Started
- Android 6.0运行时权限
- 1789: [Ahoi2008]Necklace Y型项链
- Python之Fabric模块 Fabric是基于Python实现的SSH命令行工具,简化了SSH的应用程序部署及系统管理任务,它提供了系统基础的操作组件,可以实现本地或远程shell命令,包括:
- 如何恰当地使用 React 生命周期方法
- webpack中postcss-loader不支持行内注释的解决办法
- Scribe + HDFS日志收集系统安装方法