Continue upload file after app restart, bug fixes