How to reproduce
- Create a contents article
- Put approximately 20 upload attachments (.doc, .doc, .pdf..) in the contents
- An error message appears « le fichier que vous venez d’insérer a été correctement ajouté mais n’est pas visible car il n’est pas du type attendu ».
- Click on ok
- The file is uploaded, select it from the list
- Click on ok
There is the same error with Resource Explorer
Issue is on ChooseAttachmentFile#_insertAttachmentCb2 and ChooseResource#_uploadFileCb2
Since filters are done on server side, this is useless to check `isVisible` property to determine if the inserted file matches the current filter. Moreover this could lead to error in case of a big tree because 'isVisible" may be false during tree loading or scroll