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.

Getting content from container, always image/jpeg (expecting pdf)

Featured Replies

  • Newbies

Hi group,

My first post here, so bear with me.

I connecting to some FM files created with FMPro 8.5 that run on an server 11 setup so I can use the PHP API.

This all works well, but I would like to grab the contents of some containers. People drop images (jpg and gif) and pdf files into this container.

If I fetch the contents with PHP I keep getting "image" even though I know some are pdf files.

I've tried several things, most solutions I've found on this forum as well do it the same way. When I use cURL and try to grab the headers there is no content-disposition, I was expecting them to force a mimetype to pdf (or some other) etc.

The path is also "/fmi/xml/cnt/data.jpg?-db=..." when getting the field contents. See the .jpg file extension.....

Any ideas? This is driving me nuts...!!

TIA

Rolf

PS > If I check the same record in FMPro 8.5 and right click on the container I can select "Open Acrobat Document" so internally the contents of the container is still a correct pdf.

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.