Moved extension check higher up in handler processing to fix bug where the check wasn't applied to non-chunked uploads. Thanks to ro