Docs
Download

Files and drag and drop

Let people pick a file or folder, and import files dragged onto Blender.

An operator with Invoke Type File Browser opens Blender's file browser first and runs Execute with what was picked. Add a File Handler node, and the same operator also runs when such files are dragged onto Blender, without the browser.

An Import CSV operator with Invoke Type File Browser printing its File Path, and a File Handler for .csv files dropped in the 3D Viewport

Picking files

Open the Operator node's Settings and set Invoke Behavior to File Browser.

Choose what to pick in the dropdown below it (Pick: Open File by default), and optionally a Filter like *.csv or *.png;*.jpg (empty: all files).

Use the new output of the Operator node in Execute, e.g. with Read Text File to read the file.

PickOutput
Open FileFile PathOne existing file
Open FilesFile PathsOne or more files, a list of full paths
Save FileFile PathA file name to save to. Blender asks before overwriting an existing file
FolderFolderA folder; Filter isn't used

The paths are absolute. If the browser is cancelled, Execute doesn't run.

Drag and drop

A File Handler node (Add › Operators) tells Blender which files your add-on can import by drag and drop. When someone drops a matching file, Blender runs the operator with the file already picked, so the file browser doesn't open.

Operator fieldThe operator to run. It only lists Operator nodes with Invoke Type File Browser and Pick Open File or Open Files
Drop InThe editor where files can be dropped (default 3D Viewport), or Any Editor
LabelThe name Blender shows for this kind of file when several handlers can take it (default "Import")
ExtensionsThe file endings, separated by ;, e.g. .csv;.txt

With Open Files, dropping several files runs the operator once with all of them in File Paths.