Paperclip resume uploading

Fix #220 
Fix #265