fix: jquery-fileupload done callback not working

server needs to return json string, with content-type header
set to application/json
attachment UI flashes msg and name is updated