This may be completely irrelevant - both on the PC side and now the Mac side (grrr@!*@#!), the display tends to default to extension-free names. (So cretinous.) Thus, it may look like the downloaded file doesn't have an extension but actually it does, so if you add one, it stuffs up. But this may not actually be you problem! :-)
Thanks for the comment. that is not the issue. My system shows file extensions by default, the files export without an extension although one is present on the file its exporting from the container.
Try with another browser to see if you get the same result or whether this is a brower-specific "failure"
Its the same across IE, Chrome and Firefox.
I have this koala.jpg file attached. saving it from the FM client, its saves as jpg that can readily be viewed.
the three without extensions shown below, are from the three browsers. They are all the same size, and all slightly smaller than the one saved from the client. Adding ".JPG" to the end, viewer app says the file is damaged or corrupted?
Webdirect doesn't support specifying a location to save files, according to this page: http://www.filemaker.com/13help/en/html/scripts_ref1.36.61.html
That would make me think that it disregards any path name you put in, although I would probably use a GetAsText function on the container field anyway.
Perhaps you might test if the user is in webdirect with a Get ( SystemPlatform ) function and then not set a path, in case that is causing a conflict.
Mike, you were right on the money !
I overlooked the reviewing Web Direct compatibility around using a path.
I added an else IF and with the function, and I now get a TAR(.gz) file that I can then open and extract the content. I'll have to research if having files compressed is an option.
Thank you, David
I get the same experience, when exporting an FM file.
It comes without the included extension.
But when I add the .fmp12, then it opens normally.
I'm a little confused on that.
Here's what I read there:
If no file is specified, the user is asked to choose a filename and location when the script step is performed.
Hey found it for myself,
it is only partially supported in WD; can't specify; defaults to downloads folder.
Best to you!