Allow a custom uploadCompleted function similar to formatData