diff --git a/core/templates/filepicker.html b/core/templates/filepicker.html
index 6d55689fe3d784d18eb962a506e836d585af8508..d9382bef029904f586f6ba36faa1fb3ba0bc99ca 100644
--- a/core/templates/filepicker.html
+++ b/core/templates/filepicker.html
@@ -47,7 +47,7 @@
 						<span class="filename-parts">
 							<span class="filename-parts__first">{filename1}</span>
 							<span class="filename-parts__last">{filename2}</span>
-						</div>
+						</span>
 					</td>
 					<td class="filesize"
 						style="color:rgb({sizeColor}, {sizeColor}, {sizeColor})">