storj-thirdparty / nextcloud-app

GNU Affero General Public License v3.0
21 stars 3 forks source link

Only first 64M is uploaded #4

Closed Erikvv closed 2 years ago

Erikvv commented 2 years ago

https://forum.storj.io/t/nextcloud-on-storj/2711/25

I just tested the nextcloud storj app and encountered the following issue: while I am able to access my bucket, when downloading a file, it only downloads the first 64M of it. I also tried to upload a file (~120M) and only a 64M segment of it is effectively uploaded. Anything I may have done wrong? Thank you!

Erikvv commented 2 years ago

When uplink_download_read() is called the last time for a segment boundry, it will return an empty result which I interpret as an end condition.

But instead I should only interpret the error code EOF (-1) as an end condition and keep calling uplink_download_read().

Erikvv commented 2 years ago

Fixed in 0.0.5