Pass file through to onError callback and add default onAbort callback.