May 17, 200421 yr I'm just wondering if this is a possibility (and if so, how to do it)...Is it possible to use a FileMaker database that can hold images which can be uploaded via the web as well as viewed in web pages from the database? If it is where should I go to find help with the code/syntax? Thanks, Jason
May 17, 200421 yr For Custom Web Publishing we generally have the images stored externally from the database. In the database we will have a filename. The path can then be constructed with CDML. The "CDML Reference" database shows how to display images. All the best. Garry
May 17, 200421 yr Newbies http://www.cnsplug-ins.com/products.htm?product=UPLOADit The plugin UPLOADit will upload JPG and GIF files to FileMaker 6 and 7.
May 18, 200421 yr You can also use PHP to upload files and update an FM database. All the best. Garry
May 18, 200421 yr Here is an example of how to do file uploads and access an FM database with PHP. First the form: <body> <form action="uploadtest.php" method="post" enctype="multipart/form-data"> <input type="file" name="myfile"> <input type="submit" value="Upload"> </form> </body> </html> Second the PHP file: <body> <?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"); ?> File Uploaded </body> </html> The 'hworld.html' format file can contain whatever you like. Hope this is of interest. Garry
Create an account or sign in to comment