Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Serving Images from FileMaker online

Featured Replies

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

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

You can also use PHP to upload files and update an FM database.

All the best.

Garry

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.