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.

Server filepath to SC?

Featured Replies

I'm trying to set up a server-side script that sends an e-mail with an attachment stored on the same machine using SuperContainer.

 

I know the folder path from starting at the SuperContainer folder, but how do I get from a FileMaker-recognized "start" ( DesktopPath or DocumentsPath or something more general) to the SuperContainer folder?

 

What's the best way to reference a SuperContainer filepath from the server itself?

Hi David,

 

We recommend using the absolute path for any file path. On OS X, this means starting the path with either “/Volumes” or “/“, and on Windows, this means starting the path with the drive letter. For example, these two paths point to the same file: “/Volumes/Macintosh HD/Users/<username>/Desktop/test.txt” and “/Users/<username>/Desktop/test.txt"

Please note the FileMaker Get functions (e.g., Get(DesktopPath)) return a path that begins with the name of the system volume. For example, Get(DesktopPath) returns “/Macintosh HD/Users/<username>/Desktop/“ where “Macintosh HD” is the system volume.

  • 3 weeks later...
  • Author

OK, so I've been plugging away at this, and "/Volumes" isn't cutting it. SC is creating a folder within itself and not using the absolute path.

 

I'd like to copy a file stored with SC to a folder where Server can e-mail it as an attachment. Using SCCopy(), I can copy the file, but it always puts it in a subfolder of the SuperContainer/Files/ folder.

 

Feeding SCCopy a destination path of:

"/Volumes" & Get ( DocumentsPath ) which is equal to  /Volumes/OSX/Library/FileMaker Server/Data/Documents/

 

I get a file copied to:

OSX/Users/Shared/SuperContainer/Files/Volumes/OSX/Library/FileMaker Server/Data/Documents/filename.pdf

 

Instead of:

/Volumes/OSX/Library/FileMaker Server/Data/Documents/filename.pdf

 

It's the same if I used a temporary folder. It just created the whole temporary folder path inside SC's Files folder.

 

How do I bump up a file out of SC to go down to the Doc (or Temp) folder?

Hi David,

 

The SCCopy function is specifically meant for copying files from one SuperContainer directory to another SuperContainer directory. It will not copy files outside of the SuperContainer folder. I realize the documentation for the function does not mention this, and I will have it changed shortly.

 

The function you want is SCDownload. You can supply a destination folder for the downloaded file.

  • Author

Thank you Joe!

 

That works!

 

David

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.