NX-619 :: Make ajax work with file uploading