parse response json on file uploads