百度智能云

All Product Document

          Object Storage

          API & SDK & Tool

          How to locate the error response of BOS?

          In case of an error when a user accesses BOS, BOS returns an error code and error message to the user to facilitate the user to locate the problem. Please refer to Error Code for detailed explanation for error code and error message.

          When API or SDK is used to upload object, how to judge whether an object is uploaded successfully?

          • When API is used to upload object, if the returned value is 200, it indicates the upload has been successfully completed, and GetobjectMeta Interface can be used to verify whether the object exists or not.
          • When SDK is used to upload object, in case of no exception, it indicates that the upload has been successfully completed. Please refer to the "Access objectMeta Information" in SDK file to verify whether the object exists or not.

          What's the difference between such upload interfaces like putobject, postobject, appendObject and multipartUpload?

          These upload interfaces can all upload files. The main differences are shown as follows:

          • Putobject is used to upload small files in general.
          • Postobject is mainly used to upload files under a browser environment.
          • appendObject is mainly used for incremental upload scenarios, such as real-time upload of surveillance video, log transmission, etc. The Appendable files can be viewed any time.
          • MultipartUpload is mainly used to upload large files. MultipartUpload is to upload the file part by part after the large file is divided into parts, which improves the success rate and speed of the uploading. It shall be noted that, the file uploaded by MultipartUpload cannot be viewed from Listobjects until it has been uploaded.

          How to copy data across bucket?

          The AIP interface supported by BOS Copyobject can realize the data copy. In order to facilitate your use, BOS console, CLI and SDK are encapsulated such interface. When you need to copy a large number of files across buckets, you can make it through SDK: First, get the list of files to be copied from Listobject, and then copy with Copyobject. It shall be noted that, you need to have the read permission for source files and write permission for target files in order to execute Copyobject. If the target bucket is owned by another user, you can ask the owner to set ACL for his/her bucket, so as to allow you for writing. Please refer to Bucket Access Control for more information.

          How to verify whether an object/a bukect exists or not?

          BOS supports GetobjectMeta and Headbucket API. You can use these two APIs to verify whether an object/a bukect exists or not.

          How to mount BOS to linux server?

          BOSFS can be used to mount BOS to BCC server of Linux system (Windows system does not support the mount). BOSFS is used to mount remote BOS service to the local file system, and to perform a similar function to a network file system, with the purpose to facilitate the user to use the system command or standard POSIX interface to access the files on BOS, just as easy as using the local disk. In case of any problem during the configuration, you are recommended to submit Ticket for processing.

          How to integrate BOS into APP?

          BOS iOS and Android SDK have no limitations on integration. If it is normal to use demo but an error for integration is reported, it is preferred that you integrate it as demo, or integrate the project into the demo project. If it is abnormal to use demo, you are recommended to submit Ticket for processing.

          What are the requirements for the version of phpunit when the sample code of PHP SDK is running?

          The phpunit version is required to be 4.5.0 and above.

          How to use BOS to build FTP service?

          BOS is unable to be used as FTP directly, but you can use Peripheral Tool for download and upload to simulate FTP. Or you can call API interface and SDK for development by yourself.

          How to connect Center and Python Flask to BOS?

          If you have built Wordpress, Discuz, UCenter and Python flask and want to use them in conjunction with BOS service, you are recommended to install corresponding plug-in to solve the occupation of local disks on the one hand, and improve the browsing speed for the pictures and other multi-media on the other hand. Please refer to the Third-party Tool for specific use.

          Previous
          Object Upload, Download and Management
          Next
          Photo Service