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

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

Recommended Posts

Posted

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

Posted

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

Posted

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

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