moved downloadDocument to _POST instead _GET, must check IF works