AJAX file upload for RESTful service works