Opening Files from Notion

By default, Files to Notion creates an Open file database column with a direct link that triggers file opening (for example - http://localhost:3069/open?file=/User/me/myfile.txt)

In app Settings , You can adjust file opening behavior (globally) in two way:

  • Open file directly - (best for opening apps, media files, etc.),
  • Open enclosing directory - Opens folder in Finder (for Mac) or File Explorer (for Windows), where a file is stored.
caption
Open files strategy settings in Files to Notion app

With Extended Plan, you can define file opening strategy per specific file, through extending Open File column URL with openStrategy URL query parameter:

http://localhost:3069/open?file=/User/me/myfile.txt&openStrategy=
file

http://localhost:3069/open?file=/User/me/myfile.txt&openStrategy=
directory

Simply copy below Notion formula:

link(
  "Open dir", 
  prop("Open Link") + "&openStrategy=directory"
) + "\n" +
link(
  "Open", 
  prop("Open Link") + "&openStrategy=file"
)

Insert it into a new Notion database column, formatted as a formula, as illustrated below:

caption
Ready to synchronise your local files? Get started for free.