Document upload and save fixed. They now work perfectly.