dbTalk Databases Forums  

Creating a link to a stored file in a container on the web

comp.databases.filemaker comp.databases.filemaker


Discuss Creating a link to a stored file in a container on the web in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tris
 
Posts: n/a

Default Creating a link to a stored file in a container on the web - 11-23-2005 , 12:21 AM






Anyone help with this?

I have created a website using the server 7 advanced and I am wanting to
have a file stored in a container field accessable for download.

I know the URL for this and have a calculation creating this for each
record. If I drop the URL Calculation into the URL bar it links to the file.

What I can't do is workout where to put the link on the webpage so that
I can click and link to the file.

Anyone able to tell me what to do?

Reply With Quote
  #2  
Old   
Wes
 
Posts: n/a

Default Re: Creating a link to a stored file in a container on the web - 11-23-2005 , 01:37 PM






On Wed, 23 Nov 2005 17:21:54 +1100, Tris <user (AT) example (DOT) net> wrote:

Quote:
Anyone help with this?

I have created a website using the server 7 advanced and I am wanting to
have a file stored in a container field accessable for download.

I know the URL for this and have a calculation creating this for each
record. If I drop the URL Calculation into the URL bar it links to the file.

What I can't do is workout where to put the link on the webpage so that
I can click and link to the file.

Anyone able to tell me what to do?
I'm not clear on what you are trying to do here.

Awhile back, I researched a need to be able to upload binary files
into a dbase hosted by Instant Web Publishing. The answer was that I
couldn't import binary files into FM using IWP or XSLT. I also looked
at server side plug-ins, but found there were really none available at
the time that would do this.

My solution was to use PHP and FX.PHP (PHP API for FileMaker) to allow
the uploading of a file to a directory under Apache on the same server
as FMSA. I then used FX.PHP to pass the URL to the file, into the
container field. I could also store the reference to the file in a URL
field.

http://www.iviking.org/

------------------------
Wes
http://www.LostPants.com


Reply With Quote
  #3  
Old   
Tris
 
Posts: n/a

Default Re: Creating a link to a stored file in a container on the web - 11-23-2005 , 11:39 PM



I didn't think I explaned it very well. Maybe this is better:

I want to be able to go to a page click on a link for a record and from
that link access the file stored in the container field.

I know what the url is I just can't get a one click link to appear on
the page to download the stored file.

If I drop the link into the URL it starts to download but that requires
me to cut and paste it into the url bar.

Is that better?

Wes wrote:
Quote:
On Wed, 23 Nov 2005 17:21:54 +1100, Tris <user (AT) example (DOT) net> wrote:


Anyone help with this?

I have created a website using the server 7 advanced and I am wanting to
have a file stored in a container field accessable for download.

I know the URL for this and have a calculation creating this for each
record. If I drop the URL Calculation into the URL bar it links to the file.

What I can't do is workout where to put the link on the webpage so that
I can click and link to the file.

Anyone able to tell me what to do?


I'm not clear on what you are trying to do here.

Awhile back, I researched a need to be able to upload binary files
into a dbase hosted by Instant Web Publishing. The answer was that I
couldn't import binary files into FM using IWP or XSLT. I also looked
at server side plug-ins, but found there were really none available at
the time that would do this.

My solution was to use PHP and FX.PHP (PHP API for FileMaker) to allow
the uploading of a file to a directory under Apache on the same server
as FMSA. I then used FX.PHP to pass the URL to the file, into the
container field. I could also store the reference to the file in a URL
field.

http://www.iviking.org/

------------------------
Wes
http://www.LostPants.com

Reply With Quote
  #4  
Old   
FP
 
Posts: n/a

Default Re: Creating a link to a stored file in a container on the web - 11-24-2005 , 09:00 PM



I assume you're using IWP and want a user to be able to click on a
button which will then start downloading a file that is stored as a
reference in a container field.
You also said that you already have the URL to this file in text
format.
I believe you can get a download initiated if the button has the "Open
URL" script step attached to it, make sure your URL is correct, meaning
it MUST have the http:// ...
If you just type an address into the browser, the browser adds the
required components but when FM passes a URL it must be correct.


Reply With Quote
  #5  
Old   
Jens Rasmussen
 
Posts: n/a

Default Re: Creating a link to a stored file in a container on the web - 11-28-2005 , 08:51 AM



It is a bit difficult in IWP. Beware of popup blockers and overlapping
fields.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.