When the user drops a large file, for instance a .ova file, then an error modal pops up saying "this item is not a file".
In order to determine whether the item dragged from the user's file manager is a file and not a folder, we use FileReader to parse it:
- Either it fails -> the item is a folder
- Either it succeeds -> the item is a file
It works well until it comes to large files like archives or VM images, FileReader crashes, hence the error "Item is not a file"
Let's consider items having a size greater than 0 as files, it will greatly reduce the delay bewteen the drop event and the beginning of the upload.
Nevertheless, we should still rely on FileReader to know if the item dropped by the user is whether an empty file or a folder.