Try catch finally in upload