Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

1706

April 2nd, 2013 11:00

Atmos-php download resume supported? EsuHelpers.php

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.

281 Posts

April 12th, 2013 09:00

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.

14 Posts

April 12th, 2013 09:00

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.

No Events found!

Top