Method upload_fp should return a JSON response