Instead only clear the number of bytes requested and mark the remainder as uninitialised.
Attach a file by drag & drop or click to upload