Same thing was happening to me when i had input set like this: <input type="file" name="gallery" multiple="multiple">
fix was to add “[]” behind name: <input type="file" name="gallery[]" multiple="multiple">
now getUploadedFiles() shows more than one file,
hope it helps somebody