Autodesk-Forge / forge-php-client

Forge PHP SDK: Enables you to easily integrate the Forge REST APIs into your application, including OAuth, Data Management,Model Derivative, and Design Automation
Apache License 2.0
41 stars 52 forks source link

uploadChunk #43

Open zhangjing007 opened 4 years ago

zhangjing007 commented 4 years ago

The Upload Chunk Function in autodesk\forge-client\lib\ApiClient.php:234 " $response = curl_exec($curl);",this sentence of code execution is very slow, resulting in stuck.Recv failure: Connection was reset image

zhangjing007 commented 4 years ago

I got it! The variable body is wrong!It was my fault

zhangjing007 commented 4 years ago

But I have another problem: when the file is relatively large (I tested about 600M), it can upload successfully, but when opening the file, it is prompted that the file is damaged

dukedhx commented 4 years ago

With large files try upload them by chunks and verify integrity by their sha1s afterwards - see here