close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Create a download behavior that links to a file on a separately hosted subdomain

Thread began 10/27/2021 9:52 am by MagsW | Last modified 11/19/2021 5:10 pm by Ray Borduin | 43 views | 7 replies |

MagsW

Create a download behavior that links to a file on a separately hosted subdomain

Hi Ray, I host a client's main website (e.g. https://www.domain.com) on my dedicated server but my client has a subdomain set up on their own server (https://files.domain.com). Ideally I'd like to create a file download behavior on the main website that would get the files from the subdomain, rather than just creating a standard hyperlink. I tried with the settings as shown in the screengrab but it didn't work. Is there a way to get this to work?

Sign in to reply to this post

Ray BorduinWebAssist

I'd have to update the library file to support external files. I should be able to do that easily in a premier support ticket if you want to schedule an hour with me.

Sign in to reply to this post
Did this help? Tips are appreciated...

MagsW

That would be great thanks as I would like to be able to do this on a few locations on the site as the amount of files needing stored is growing all the time, hence the need to move them to an external source.

I can send a Zoom invite if that works for you - when would suit? I'm in the UK and evenings are probably better for me.

Sign in to reply to this post

Ray BorduinWebAssist

Contact me via skype and we can coordinate a good time. My Skype name is: webassist.rborduin

Sign in to reply to this post
Did this help? Tips are appreciated...

MagsW

Thanks for your help Ray, here's a copy of the updated file!

Sign in to reply to this post

Ray BorduinWebAssist

Thank you. I'll get the new feature included in the next DataBridge build. Let me know if you need help with anything else.

Sign in to reply to this post
Did this help? Tips are appreciated...

MagsW

Hi Ray, I had to park this project for a while because I was working on other stuff, however I've now had a chance to come back to it - I need to now update the download behavior to use dynamic values, however it seems to be causing a problem - when I hit the Download button it prompts me to download the current PHP page and not the remotely hosted file, so I downloaded it anyway and it's just a blank page. Can you take a look at the attached page and see where I've gone wrong? The remote file definitely exists.

Sign in to reply to this post

Ray BorduinWebAssist

Try updating your form action from:
action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>"

to just:
action=""

That might be the issue. The recordset needs the url parameter to find the correct row and that action is probably stripping it out. Leaving it blank preserves the original page location including the url parameter.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...