Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I know this a come up a number of timesin the past but I can't quite get it to work. I have tried the code from a previous post (below) but all this achieves to create a new record with no image in the container. Would one not have to encode the image 2 say base64 they are to use a readfile into the database or are we infering by reference where the file is living in the /volume/data path??

Thanks

<?php

$file_name = $_FILES['myfile']['name'];

move_uploaded_file($_FILES['myfile']['tmp_name'], "/Volumes/Data/" . $_FILES['myfile']['name']);

readfile ("http://10.0.1.2:1154/FMPro?-db=combotest.fp5&-lay=web&-format=hworld.html&name=" . $file_name . "&-new");

?>

Posted

Hi, DSTUART! You're way over my head but just so I can know what I don't know, are you trying to have FileMaker store a graphic in a container field? If so, I'd humbly guess that your reference to a referenced file path is probably more on the right path than a true upload. Are you using FM7 or FM<7?

Ah, nevermind... I see Garry answered your Q in the other forum.

--ST

This topic is 7469 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.