lua-resty-string icon indicating copy to clipboard operation
lua-resty-string copied to clipboard

save and load context for md5

Open bigplum opened this issue 13 years ago • 2 comments

In case of uploading breakdown, we won't to calculate md5 from begining. So add the functions to continue md5_update().

bigplum avatar Jun 29 '12 08:06 bigplum

Using files to store the context seems to be too specific. Maybe it's sufficient to expose APIs to fetch and restore (opaque) ctx data? Like adding the get_context and set_context methods?

agentzh avatar Jun 29 '12 22:06 agentzh

Break uploading maybe during many days, or user may upload part of a file and abandon it. These behaviors would produce some garbage data in context.

And the context data must be related with the parted files, the relationship should be maintained in application.

So it's more reasonable to give application control to decide how to store the context data.

bigplum avatar Jun 30 '12 01:06 bigplum