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.

Filename insertion into a field

Featured Replies

Hi all,

What I'm after is a script that can tell Filemaker (via a form) what filename to use after someone has uploaded a file.

Perhaps a script to upload the file, but then the filename stays in a field (protected) until they submit. That gets put into Filemaker.

Is that possible?

Thanks

Web Companion itself cannot handle file upoads.

There is no automatic way to do this. About the best you can do is to upload the file to the (different to WC) server, then enter the filename into the database in a separate operation.

Now some Java-Ghru might be able to work out a system that uploads the file, remembers the path, then automatically enters it into the FMP database.

I know nothing of Java, so I don't know if it's even possible.

"What I'm after is a script ..." JavaScript or ScriptMaker script? I cannot help you with JavaScript.

With ScriptMaker in a browser solution you must understand that ScriptMaker is single-threaded. That is, it can handle only one request at a time and it does not queue requests. If more than one client is at your site and the near-simultaneously request a ScritpMaker script, one script will run, one will not run and both clients will be informed that the transactions was successful. cdml tags alone do not recognize an event failure.

Understanding this it is possible to develop a workaround to the problem such that ScriptMaker scripts can be run successfully and safely in browser solutions. I know. I've done that. You can visit my site, test and take advantage of what is offered. You can reinvent the wheel. You can possibly find another way to accomplish that which you desire.

As the others have said, you need different server software to upload a file. However, updating the FM DB with the filename is relatively straight-forward.

A server I use is IIS with the SA Fileupload component. However, Apache and others can do a similar job.

All the best.

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.