Try to fix document uploading.