Accept file drops in Filemaker with MBS Plugin


In drag action script, we first pick the script parameter. This script parameter is the same value as we have in the $dropview variable in the other script. But as you can have multiple drop areas, this parameters gives you a possibility to know which one was hit. Also we need this value for calling DragDrop.GetPath. So we have now the first path in the variable $path. This path is now stored in FileName field and also we call Files.FileSize to get the file size.

Now you can test it. Simply drop a file on the window and you see path and file size in the database window:

Download plugins here and the example database: dragtest.zip
