The first uploads files in the folder we are at. the another one create new folder outside the current folder. it doesn't behave like how it should be.
I recommend to fix the UX. In order to create in the folder I see that you have below another button of create folder, but the UX is confusing.