【问题标题】:How to include or wrap the file or file content or file object when using Softlayer Object Storage REST API使用 Softlayer 对象存储 REST API 时如何包含或包装文件或文件内容或文件对象
【发布时间】:2016-05-25 06:31:33
【问题描述】:

我正在使用 Softlayer 对象存储 REST API。 有人告诉我,下面的命令行使用 CURL 已经成功了。

$ curl -i -XPUT -H "X-Auth-Token: AUTH_tkabcd" --data-binary "Created for testing REST client" https://dal05.objectstorage.softlayer.net/v1/AUTH_abcd/container2/file10.txt

我希望使用 Javascript 上传文件,所以我不知道如何将文件包装在我的请求中。 有人请提供一个例子吗?非常感谢。

【问题讨论】:

    标签: openstack ibm-cloud-infrastructure object-storage


    【解决方案1】:

    这里有一些可以帮助你的想法和例子:

    但是,有一位客户无法通过 Javascript 提出休息请求。我会调查一下,有消息会告诉你的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-26
      相关资源
      最近更新 更多