HybridCloud
2 Bronze

Atmos-php download resume supported? EsuHelpers.php

Jump to solution

Following two PHP functions taking care of downloading a file from online EMC storage:

readObjectToFile

readObjectToStream

However, there is a code assigning the current bytes value to 0, $this->currentBytes = 0;

Is there a way to specify offset value similar to uploading operation, in order to achieve a download resume operation?

Jason Cwik, any light to share, please?

Thank you.

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
JasonCwik
3 Argentum

Re: Atmos-php download resume supported? EsuHelpers.php

Jump to solution

Not currently.  However, you could easily change this by moving the setting of currentBytes to zero to the constructor and adding a setCurrentBytes() function that you would call before readObjectToXXX.

View solution in original post

2 Replies
JasonCwik
3 Argentum

Re: Atmos-php download resume supported? EsuHelpers.php

Jump to solution

Not currently.  However, you could easily change this by moving the setting of currentBytes to zero to the constructor and adding a setCurrentBytes() function that you would call before readObjectToXXX.

View solution in original post

HybridCloud
2 Bronze

Re: Atmos-php download resume supported? EsuHelpers.php

Jump to solution

Thanks Jason for the quick advice.

Hopefully this download offset feature will be made available at next release, as ideally would like to use the core code released by EMC without any modification, for future upgrade compatibility.

As releasing modified code for third parties usage require extra on-going maintenance effort during core code upgrade, especially for novel users.

Thank you.

0 Kudos