Move or Copy a file to a new location from within a script
I am about to create a database to handle document and image storage and search. I would like to store the documents and images outside the database and have the database only store the file reference. I am looking for a way for a user to create a new record for a document or image, upload the document or image and then have Filemaker store the file in two folders on the Filemaker server computer, one for documents and one for images. I want Filemaker to create the filename based on the document/image name and time/date it was uploaded. I want filemaker to store a copy of the document/image in a central location on our Filemaker Server.
Is this possible and how does one go about it?
What script steps can be used to control where the document/image is stored?