上传插件,不包含上传的前端实现,只提供后端接口等,其他地方接入插件上传。包括上传进度、断点续传等

contants.js 217B

12345678910
  1. var Constants = {
  2. IMAGE_MULTIPART: '/multipart/upload/',
  3. VIDEO_MULTIPART: '/upload/',
  4. IMAGE_TYPE_ERROR: 101,
  5. VIDOE_TYPE_ERROR: 102,
  6. UPLOAD_SUCCESS_CODE: 200,
  7. UPLOAD_FAILED_CODE: 400
  8. }
  9. export { Constants }