You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some thinkings:
Provide additional layer to wrap some common file upload protocols. For example: plain post upload, multipart upload.
Then the wrapping layer can ask the user for raw file input instead of io.reader. The advantage of this is every time the upload fails and retries, the file can be rewind to the start of the stream. No data is lost, no need to store in-mem as well.
But talking this out loud here, it is probably not wise to keep retrying upload large files anyways. Some resumable upload protocol should be used instead of "brute force uploading". So adding a warning to stderr when detecting the user has a really large payload probably good enough?
Seems like the logic is going to cache the file in-memory, which is super expensive to a simple HTTP POST.
The text was updated successfully, but these errors were encountered: