# upload **Repository Path**: danyanpiwo/upload ## Basic Information - **Project Name**: upload - **Description**: 各种上传方式 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-30 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 图片upload #### 介绍 > 转base64方式一般在小型项目中使用 > > 大文件上传还是传统的 formdata 或者 云服务 ##### 1.传统图片上传 - 前端post提交 - 后端接收,并处理 - 写入本地文件夹 - 将图片路径写入数据库 - 返回 - 成功返回路径 - 失败返回失败原因 ![image-20201130194619945](https://gitee.com/danyanpiwo/upload/raw/master/README.assets/image-20201130194619945.png) ##### 2.base64 ##### 3.云服务 #### 软件架构 ``` └─upload ├─egg-updata //后端 node eggjs │ ├─.github │ │ └─workflows │ ├─app │ │ ├─controller │ │ └─public │ ├─config │ ├─logs │ │ └─updata │ ├─run │ ├─test │ │ └─app │ │ └─controller │ └─typings │ ├─app │ │ └─controller │ └─config └─updata_web //后端 vue ├─public └─src ├─assets └─components ``` #### 安装教程 1. egg-updata ```powershell npm -i ``` 2. updata_web ```shell npm -i ``` #### 使用说明 1. egg-updata ```shell npm run dev open http://localhost:7001/ ``` 2. updata_web ```shell npm run serve ``` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)