diff --git a/xwiki-platform-core/xwiki-platform-office/xwiki-platform-office-ui/src/main/resources/XWiki/OfficeImporter.xml b/xwiki-platform-core/xwiki-platform-office/xwiki-platform-office-ui/src/main/resources/XWiki/OfficeImporter.xml
index 66d9864395c7..cc45a0bcf04d 100644
--- a/xwiki-platform-core/xwiki-platform-office/xwiki-platform-office-ui/src/main/resources/XWiki/OfficeImporter.xml
+++ b/xwiki-platform-core/xwiki-platform-office/xwiki-platform-office-ui/src/main/resources/XWiki/OfficeImporter.xml
@@ -618,6 +618,11 @@
.xdocLastModification,
#hierarchy.breadcrumb {
display: none;
+}
+
+/* Needed to avoid an overflow of the input with a long filename in Firefox zoomed above 100 percent.*/
+#officeImportForm #filePath {
+ max-width: 100%;
}