Jump to content

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

Recommended Posts

Posted

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

Posted

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.

Posted

"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.

Posted

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

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