Some modifications: Unfocus on enter event, specify input errors, add spinner.
Handle sublayers & legend management for drag'n'drop files