POST File, raise exception if it is not a file
Fixed import error in sword (used for raising Errors :))