# 文件上传样例 **Repository Path**: wang-fuguier-1/file-upload-example ## Basic Information - **Project Name**: 文件上传样例 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-12 - **Last Updated**: 2024-09-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OSS文件上传 ## Brower 安装 [aliyun-oss-sdk-x.x.x.min.js 安装](https://help.aliyun.com/document_detail/64041.html?spm=a2c4g.11186623.6.1222.15e443e6yWsG8U) ### 简单上传 简单上传指的是使用OSS API中的PutObject方法上传单个文件(Object)。 简单上传适用于一次HTTP请求交互即可完成上传的场景,例如小文件(小于5 GB)的上传。 [官方文档](https://help.aliyun.com/document_detail/31848.html?spm=a2c4g.11186623.6.635.840a309fZomztH) ### 表单上传 表单上传非常适合嵌入在HTML网页中来上传Object,比较常见的场景是网站应用: [Web端PostObject直传实践简介](https://help.aliyun.com/document_detail/31923.html?spm=a2c4g.11186623.6.1738.33303bd3nK3DoO) [服务端签名后直传](https://help.aliyun.com/document_detail/31926.html?spm=a2c4g.11186623.6.1740.57bf43d3QgqjKd) ### 小程序直传 [官方文档](https://help.aliyun.com/document_detail/92883.html?spm=a2c4g.11186623.6.1736.2b7b606cPZwSRv) ### OSS性能优化实践 1. [文件命名](https://help.aliyun.com/document_detail/64945.htm?spm=a2c4g.11186623.2.24.e8af14a0e5H15L#concept-xtt-p) ### 上传Object后如何获取访问URL? [上传Object后如何获取访问URL](https://help.aliyun.com/document_detail/39607.htm?spm=a2c4g.11186623.2.25.6c0d25f8kN80Ce#concept-39607-zh) ### 设置角色最大会话时间 [设置角色最大会话时间](https://help.aliyun.com/document_detail/166256.htm?spm=a2c4g.11186623.2.17.4d32606cWyVdYT#task-2498608) ### 在线图片处理工具 [图片处理工具](https://gosspublic.alicdn.com/image/index.html?spm=a2c4g.11186623.2.10.446f3b4asToKRF)