Aliyun object stores OSS and IOS uploaded files,
Alibaba cloud OSS object store official demo
put.uploadingFileURL = [NSURL fileURLWithPath:@"<filePath>"];
// put.uploadingData = <NSData *>; // Upload NSData
You need a file path here. You can’t write the file name directly.
Upload object failed, error: error domain = nscocoaerrordomain code = 260 “the file” 123456.PNG “couldn’t be opened because there is no such file
The correct wording should be:
NSString * filePath = [[NSBundle mainBundle] pathForResource:@"123456" ofType:@"png"];
put.uploadingFileURL = [NSURL fileURLWithPath:filePath];
Then it succeeded!!!
Read More:
- [Solved] IOS ipa Pack Upload Error: ERROR ITMS-90165
- [Solved] azkaban Upload zip Error :Error Chunking during uploading files to db
- How to Solve Svn upload so File Error
- How to Solve Arxiv Upload with PDFLatex Error
- Template Render Error Solution (Hexo blog theme, GIT upload)
- How to Solve Hyperf Failed to Start Error After Aliyun ACM Installed
- [Solved] Postcss Error: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema.
- K8s Install Error: Error: unknown flag: –experimental-upload-certs
- [Solved] IOS Error: Command MergeSwiftModule failed with a nonzero exit code
- How to Solve Spring MVC upload file error
- Local repository upload to remote repository error: failed to push some refs to ‘https://hub.fastgit.org/zhizhangxuezhang/ui-test.git‘
- .Net Core 5.0 Upload File limit via Swagger Api report error: error: request entity too large [Three Methods]
- ORA-08103: object no longer exists [How to Solve]
- Peewee insert data error:’buffer’ object has no attribute’translate’
- Pyqt5 Error: AttributeError: ‘QWidget‘ object has no attribute ‘setCentralWidget‘
- Main Use connect Error: without object [How to Solve]
- Django Error: ‘set‘ object is not reversible [How to Solve]
- ROS package executes rosrun error: attributeerror: ‘thread’ object has no attribute ‘isalive‘
- Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap