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.

Uploading files using the web publishing engine

Featured Replies

  • Newbies

I am using FileMaker Server with the web publishing enginer. I have been searching for a solution/plug in that will let me create a container field and allow for web uploads of files. I found Grab It and Upload It but neither seem to fit what I need. All I want is a single field that I can click on that opens a browse window. Select the file and click OK to upload it. Thats all. I would like to be able to upload multiple files and be able to add/delete as needed. Is there a solution out there for this?

For quite some time, I have needed this exact thing. By combining some PHP and the Grab-It plugin, I was able to accomplish something that may be close enough to what you desire.

For my solution, I did the following:

On the layout containing the Container field in question, I also created a Web Viewer window. I then created a PHP page that contained a form with a browse field. This lets the user browse their local computer, then click the "Submit" button in the form to upload the selected file.

Then, with a bit more basic PHP, I mov the uploaded file to a directory on my server. Finally, I then use the Grab-It plugin to retrieve the uploaded file and store it in the container field.

This is more of an outline than the specific steps/code that I use, but I thought this might help.

Depending on your level of PHP/Javascript familiarity, you could use either FX.php or the FM API for PHP to create a PHP page in your Web Viewer window that would display the container field in question, that when clicked would pop up the browse window.

Isn't the webviewer independant of the FM architecture meaning you don't have to use either FX.php or the FM API?

Correct. The Web Viewer relies on the Safari or IE 6 browser's functionality to work.

Steven

Yes, it is independent.

When I mentioned FX.php or the FM API for PHP, it was in reference to building a web page that would display FM content.

  • Author
  • Newbies

Thanks Clinton. This is great info.. Would you be willing to share want you have done? I'm not a developer by any stretch and don't have any idea on where to even start with that you have provided.

Joe

  • 3 months later...
  • Author
  • Newbies

Still looking for help on this. Anyone out there that can help me build something that will allow me to use my FM Publishing Engine and the container field to save a file? Clinton is on to something and if you are still out there would you be willing to help me.

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.