June 3, 200421 yr 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"); ?>
June 3, 200421 yr Is the file being placed into the drive "Data"? If not are the permissions correct for the script to write there? You can not place an image into a container field with a CDML URL. You may be able to do it with a "Troi" plugin or with Applescript! Good Luck. Garry
Create an account or sign in to comment