Properly handle onsuccess/onerror in handleFileTransfer
Removed some properties