I found that using DefaultPath causes the whole folder the file is in to be uploaded. This is unexpected and, in my opinion, a bug.
Here is a demonstration. Screenshots demonstrating the expected behavior, without DefaultPath, and unexpected behavior, with it: