updated upload document methods