Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

HELP!

This is driving me nuts. 

Need to send emails with an attachment from server side script. 

The attachment path calculates correctly, as far as I can tell. Permissions are 777 (I Know...), but the file still does not attach!

 

This is the variable calculation that yields the path: 

"/Samsung SSD/Library/FileMaker Server/Data/Documents/"&$filename

 

Only problem is: attachments don't attach!

I have tried every iteration I could think of: 

"filemac:/Samsung SSD/Library/FileMaker Server/Data/Documents/"&$filename

"/$filename"

"<Documents>/"&$filename

What am I missing here???

 

Thank you!! I can't believe I'm the only one who ran into this issue?

How about approach it from the other direction: try using the (new in FM18) Create Data File script step followed by Write Data File, and see if the server can create a file using your file path.  Maybe that will help you debug?  See https://fmhelp.filemaker.com/help/18/fmp/en/index.html#page/FMP_Help%2Fcreate-data-file.html%23ww1258616

 

Also, I find that FMserver is sensitive to file ownership - if you right-click the file, get info in the finder, you can set the file to be owned by the 'fmserver' user.  You might need to do that to the enclosing folder, too.   Does that help?

 

You don't need to calculate the path up to the Documents folder inside the FMS folder.  Just use Get(DocumentsPath) for that part and it will always be correct.  But you have to calculate the complete path ahead of time and put it in a variable, in the Attachment  "attache file" dialog you should just specify a single variable.  That window is not a calculation dialog so you cannot put a calculation in there.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.