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.

Insert Picture vs. Insert File (file name / file path error)

Featured Replies

I'm writing a script to insert a PDF into a container field.

I've captured the file name and path as a var ($filename) prior to creating the PDF.

If I use the Insert Picture step, I get a "file not found" error, even though the file name and path are correct.

Using Insert File instead, the file is found an inserted into the container field with no errors. However, I need the actual PDF displayed in the container field (as opposed to a file reference, which is the result of using Insert File) and I believe Insert Picture is the only way to achieve this.

For the life of me I can't figure out why $filename works for Insert File but not for Insert Picture.

Thanks in advance for any help with this.

PDF is not a picture format. See:

http://fmhelp.filemaker.com/fmphelp_11/en/html/add_view_data.4.34.html#1029837

Maybe instead of a container field, you could try using a web viewer.

  • Author

I'm on a Mac. But I figured it out. The path I was saving began with "filemac:" This is fine for Insert File, but Insert Picture requires "imagemac:".

Thanks for your help.

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.