Comments (4)
此功能还未正式开放呢~
请以官网公告为准,到时候文档会更新的。
from aliyun-oss-ios-sdk.
已经解决了,需要使用图片服务的EndPoint。之后在ObjectKey后面拼接图片规则即可
Example:
func oss_setThumb(objectKey: String) {
oss_setImage(objectKey + "@!thumb");//自定义规则
}
func oss_setImage(objectKey: String) {
guard let client = DataCenter.sharedDataCenter().client else {//client为OSSClient对象
return;
}
let task = client.presignConstrainURLWithBucketName(AppConfig.OSSBucketName, withObjectKey: objectKey, withExpirationInterval: 60*60);
if task.error == nil {
if let result = task.result as? NSString {
print(result);
}
} else {
print("error: \(task.error)");
}
}
from aliyun-oss-ios-sdk.
嗯。。这个是以前的用法,x-oss-process
参数是为即将要上的一个新功能准备的。我以为你问的是这个呢~不好意思。
from aliyun-oss-ios-sdk.
使用OSSGetObjectRequest
,也是可以在objectKey
后面拼接图片规则。如果使用的是图片服务的EndPoint
。那x-oss-process
的作用和在后面凭借图片规则效果是一样的,只不过格式变了
from aliyun-oss-ios-sdk.
Related Issues (20)
- upload object failed, error: Error Domain=com.aliyun.oss.clientError Code=5 "已取消" HOT 3
- OC分片上传和断点续传大文件如何支持后台上传
- 使用OSSAuthCredentialProvider怎么向获取sts token的api地址设置header HOT 1
- 使用SPM安装不成功 HOT 1
- 业务流程是后台保存AccessSecret不暴露给前端,只返回Authorization相关的信息,这个SDK怎么使用? HOT 1
- 使用 流式下载大文件时,内存依然不释放,下载超大文件时,直接内存溢出
- 2.10.16 版本循环依赖问题,无法编译 HOT 4
- Error Domain=com.aliyun.oss.clientError Code=6
- AliyunOSSiOS/OSSCompat.h:18:12 Cannot find interface declaration for 'OSSClient' HOT 2
- 上传文件:断点续传问题回调进度问题 HOT 2
- 请支持批量上传功能
- error message = Error Domain=com.aliyun.oss.clientError Code=2 "(null)" UserInfo={ErrorMessage=uploadId for this task can't be stored persistentially!} HOT 3
- 2.10.18,readUploadIdForRequest:方法编译警告
- 赶紧支持SPM吧, 比啥都重要. HOT 3
- 启动崩溃 EXC_GUARD HOT 2
- 2.10.18, 连续调用拷贝对象方法会触发闪退 HOT 1
- 使用 NSOperationQueue管理图片上传队列,导致超时上传失败,是发生死锁了吗,如何解决? HOT 1
- com.aliyun.oss.clientError error 3. or com.aliyun.oss.clientError error 7. HOT 2
- 你好,部分机型偶发This operation need data or file to upload but none is set HOT 3
- Apple rule:Add Privacy Info File HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aliyun-oss-ios-sdk.