STRING, read-only.

Available in all subroutines.

The file name specified in a URL. This will be the last component of the path, from the last / to the end, not including the query string.


In the request, req.url.basename will contain hello.gif.

User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.