When I upload a folder and a file together from the Web interface through drag-and-drop, the file turns out to be inside the folder.
Just to give you a concrete example. Suppose we have following files
After uploading, they become
The testing environment:
Browser Chrome Version 55.0.2883.87 (64-bit)