Not so simple.

For directories we still need a way to check if some of its children is being uploaded, since we are not changing their 'uploading' value when a child file is uploaded.

Maybe the best decision would be keep this method as it was before, and adding the check file.isUploading() to those points where this is being called.