I know that this is not a problem with my coding, file permissions or anything else. Everything is perfect.
Try opening up Google Chrome, any version, add multiple files and click upload on the official demo here:
Error on every second file. Anyone knows how to fix this bug?