### Specifying the directory to be uploaded

#### Targeting a (new) subdirectory

On top of the view, an empty text field will show up:

![Directory selector](https://gin.g-node.org/larkumlab/Dealing_with_Gin/raw/book/web-interface/uploading-editing/images/directory-selector-empty.png)

This is for specifying the directory to upload the file(s).

For instance:

- Enter the name of the subdirectory (within the repository) in this field:

![A subdirectory is specified](https://gin.g-node.org/larkumlab/Dealing_with_Gin/raw/book/web-interface/uploading-editing/images/directory-selector-subdir.png)

-  Gin will automatically create a new directory with the given name (in case it does not exist) as you [commit uploads](commit-options.md):

 ![Created subdirectory](https://gin.g-node.org/larkumlab/Dealing_with_Gin/raw/book/web-interface/uploading-editing/images/created-subdir.png)

- Inside the subdirectory, you will find the uploaded file(s):

![The uploaded file in the sub-directory](https://gin.g-node.org/larkumlab/Dealing_with_Gin/raw/book/web-interface/uploading-editing/images/subdir-content.png)

#### Specifying a directory path

You can also specify the _path_ to the directory of interest, by connecting a hierarchy of directories by a `/` (slash):



TODO