Implementing ajax upload.