upload api works + exception handler