fix upload lseek call / create fake filesystem file during update
keep track of total written bytes / cache copy of file open for reading