Jump to content

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


This topic is 4925 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • 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.

Link to comment
Share on other sites

This topic is 4925 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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