diff --git a/portal-impl/src/com/liferay/portlet/wiki/action/ImportPagesAction.java b/portal-impl/src/com/liferay/portlet/wiki/action/ImportPagesAction.java
index 8619968decfa1b35b11b1f06c24c353e8c119484..0d8b4d05c74490eac24a637ee275f68519194c41 100644
--- a/portal-impl/src/com/liferay/portlet/wiki/action/ImportPagesAction.java
+++ b/portal-impl/src/com/liferay/portlet/wiki/action/ImportPagesAction.java
@@ -122,13 +122,10 @@ public class ImportPagesAction extends PortletAction {
 		long nodeId = ParamUtil.getLong(uploadPortletRequest, "nodeId");
 		String importer = ParamUtil.getString(uploadPortletRequest, "importer");
 
-		int filesCount = ParamUtil.getInteger(
-			uploadPortletRequest, "filesCount", 10);
-
-		InputStream[] inputStreams = new InputStream[filesCount];
+		InputStream[] inputStreams = new InputStream[_MAX_FILE_COUNT];
 
 		try {
-			for (int i = 0; i < filesCount; i++) {
+			for (int i = 0; i < _MAX_FILE_COUNT; i++) {
 				inputStreams[i] = uploadPortletRequest.getFileAsStream(
 					"file" + i);
 			}
@@ -151,4 +148,6 @@ public class ImportPagesAction extends PortletAction {
 		progressTracker.finish(actionRequest);
 	}
 
+	private static final int _MAX_FILE_COUNT = 3;
+
 }
\ No newline at end of file
