some optimization for #5
fs: log  fs.write errors (if any)
attempt to resume file upload from where it left off.