small bugfix

Added missing bracket to else statement inside uploadFile method