PotzUK Posted May 15, 2002 Posted May 15, 2002 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
Vaughan Posted May 15, 2002 Posted May 15, 2002 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.
Keith M. Davie Posted May 16, 2002 Posted May 16, 2002 "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.
Garry Claridge Posted May 16, 2002 Posted May 16, 2002 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
Recommended Posts
This topic is 8496 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 accountSign in
Already have an account? Sign in here.
Sign In Now