File upload stuck on "Preparing files for upload"

Yes, of course. I understand that. But it would be nice to maybe have en error message or some other kind of validation. Now it’s just stuck on uploading and the message goes away after page refresh.