0
我在我的 laravel項目中使用了這個https://github.com/softlayer/softlayer-object-storage-php。當我上傳文件到softlayer對象存儲時,我收到了一些錯誤信息
我會打電話給
$newObject = $objectStorage->with('mycontainer/path/test.png')
->setLocalFile('C:/Users/XXX/Downloads/Great-Impression.jpg')
->setMeta('description', 'first test file')
->create();
後
我得到了一些消息錯誤
ObjectStorage_Exception_Http_RequestTimeout in D:\Works\mytest\vendor\softlayer\objectstorage\lib\ObjectStorage.php line 552:
無法創建ObjectStorage對象。
但是當我刪除->setLocalFile('C:/Users/XXX/Downloads/Great-Impression.jpg')
它工作正常。
請告知如何解決此錯誤。
感謝
您嘗試過的羣集(數據中心)? - 我用新加坡1 你能上傳這個文件到其他羣集(其他數據中心)嗎? - 我改變了羣集到米蘭1,就像你無法上傳。 你用另一張圖片試過了嗎? - 是的,我也無法上傳。 – iPreaw
奇怪的是,我嘗試過新加坡,我也有成功。你有沒有在你的對象存儲中創建這個路徑** mycontainer/path **,你是否可以創建另一個請求,如創建或獲取容器? –
我不確定爲什麼我昨天無法上傳。但今天我再次測試它的工作!謝謝。 – iPreaw