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.

Validating Container Field Sizes Once Imported

Featured Replies

  • Newbies

I have a script that lets the user import a PDF file using "Import Image", I actually import the file not the link. After they have imported this I would like to check the size of the file in the container field because I don't want it to be over 150k. however I can not find any functions or script steps that seem to offer this.

Any help would be greatly appreciated.

Sean

See the FM Help article "Importing photos from a digital camera or other device (Mac OS)." According to the article, it is possible to get the image size. I'm on XP, not on OS X, so I cannot confirm.

Sean:

I don't believe you can capture the image size in bytes, but you definitely can get image size in pixels (height and width, plus the dpi count) in which case you can institute a rule based on those items. For example, I have clearly stated in one of my solutions that thumbnails put into the system have to be 2 inches by 2 inches, and 72dpi. FileMaker can test for those parameters (actually =< those parameters) and reject anything outside them, by deleting the item from the container.

-Stanley

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.