modified handleFileUpload method

add $output parameter to indicate wheter you want to output the response or not. Please note that BlueImp\UploadHandler still outputs json result.