Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

File references, storing files on the server machine


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

Recommended Posts

  • Newbies
Posted

Helo

I hope somebody can help me with this tricky one:

I try to find a way so that i can store a file that is in a container field on the host server.

Example script:

Go to field [select/perform; PDFkart::PDFkart]

Set variable [$SavepathOnServer; Value:"filemac:/85.196.85.67/ServerDisk/Library/FileMaker Server/Data/Databases/" & Get ( ActiveFieldContents )]

Export Field Contents [PDF::PDFkart; "$SavepathOnServer"]

This does not work. I have also tried

Set variable [$SavepathOnServer; Value:"file:/" & Get ( ActiveFieldContents )]

in hope that it should be stored on the host server, but the file i stored on the client machine in the Filemaker application folder.

Are there a way to specify a path that will lead the content to be stored on the server and not on the client machine?

  • Newbies
Posted

Tried with dubble slash as you suggested, but it doesn´t work either. Thanks for suggestion!

HBorch

Posted

You cannot use the direct ip address method. You must first "connect" to the remote drive so it is then loaded on the client machine as a volume. The full syntax (from the help file) is

filemac:/volumeName/directoryName/fileName

Notice you must provide a "volumeName" - this will be the name of the volume that shows on the desktop after you have connected to the server.

Which leads on to the fact that you must also enable file sharing on the server machine - which is generally a big no no. Especially as the IP Address you are using is in the public internet - I know coz I tried it! (BorchBioServer). Admittedly I didn't have the login details.

File sharing on Mac OS X is fine in a controlled environment, but if you are offering this outside your 4 walls then think seriously about OS X Server as you can be quite specific about share points and user names and passwords etc. You also get VPN - an absolute must for this scenario and make sure you router/firewall is nailed down tight.

Good luck

Posted

You cannot use the direct ip address method. ....

I'm using that in one of my solutions and it works well for me.

.... Notice you must provide a "volumeName" - this will be the name of the volume that shows on the desktop after you have connected to the server.

Of course, you need a sharepoint in your local network.

For me, it's woking with //serveraddress/Shared volume/path/filename in an Windows environment. It should work similar in a Mac-based-network.

But that means(!):) write access for everybody (world in Unix-environment). When I wrote my post, it was a fast shot in the dark, supposing a secure network-environment and the presence of of a shared volume.

Which leads on to the fact that you must also enable file sharing on the server machine - which is generally a big no no. .... Especially as the IP Address you are using is in the public internet - I know coz I tried it! (BorchBioServer). ....

Ok, my proposal is possible _only_ in an _absolut_ secure environment, means a closed network (fiewall, etc.) and a share only for this use.

I agree _absolutly_ with IdealData, that this is _no way_ for you.

I didn't test your IP before, but after his post, I did. The IP is official and there are a lot of databases running on this machines (The names are sounding as german, so I guess, you are located here in germany). Now the IP is _public_, too. Be careful, it's dangerous, it' s only a question of time, when your databases will be cracked....

.... File sharing on Mac OS X is fine in a controlled environment, but if you are offering this outside your 4 walls then think seriously about OS X Server as you can be quite specific about share points and user names and passwords etc. You also get VPN - an absolute must for this scenario and make sure you router/firewall is nailed down tight.

I agree, but you may use a MacOSX-Client as well. For a single sharepoint you may organize them by by yourself. There is a (free- or shareware, I don't remember) tool called sharepoints, that may assist you. But you need some network security before....

Good luck

More than that ....

If you need assistance, drop me an e-mail ...

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