Currently you just get Failed: Error: Error: form-data: EISDIR: illegal operation on a directory, read which isn't very helpful. It would be nice to intercept this and return something like This seems to be a directory - if this is your .xcarchive please zip it first.
or, ideally, we could zip and upload for the user :)