add the async upload pdf from XMLHttpRequeest