diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 59056ea87192a7e7f7d0f0a6e0efdbc7e53db824..b4f85dc720ac8139e1c2de1dd734a93b5bbc4f13 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -253,7 +253,7 @@ $(document).ready(function() {
 				//singleFileUploads is on by default, so the data.files array will always have length 1
 				add: function(e, data) {
 
-					if(data.files[0].type == '' && data.files[0].size == 4096)
+					if(data.files[0].type === '' && data.files[0].size == 4096)
 					{
 						data.textStatus = 'dirorzero';
 						data.errorThrown = t('files','Unable to upload your file as it is a directory or has 0 bytes');