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

contants.js 309B

12345678910111213141516
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var Constants = {
  6. IMAGE_MULTIPART: '/multipart/upload/',
  7. VIDEO_MULTIPART: '/upload/',
  8. IMAGE_TYPE_ERROR: 101,
  9. VIDOE_TYPE_ERROR: 102,
  10. UPLOAD_SUCCESS_CODE: 200,
  11. UPLOAD_FAILED_CODE: 400
  12. };
  13. exports.Constants = Constants;