What path are you using?
-- sent from my iPhone4 --
My path variable is constructed using the Get ( DesktopPath ) function and it works just fine on FMPA on my Mac, but not in WebDirect.
The WebDirect guide mentions it explicitly a couple of times: all exports go to the Downloads folder:
" (page 20)
In FileMaker WebDirect, scripts can't access the client's file system. Web users must select files to import or insert, and exported or saved files are downloaded to the web browser's default download location.
You beat me to it. Further investigation reveals that the Export Field Contents scriptstep is only partly supported in WebDirect. It's impossible to specify a download location due to sandboxing.
I guess I'll have to live with that ... but what really puzzles me is why the extension is being dropped? It happens on Safari, Chrome and Firefox, so it must be a Webdirect issue rather than a browser one.
I've discovered that if you don't specify the file path, then WD will bring up a dialogue showing the file with full name and extension.
If you just accept it, and click OK, then it downloads it with the extension.