error handler for unsupported types in upload