Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

One click file download from admin/assets


Go to End


1205 Views

Avatar
zerrvox

1 Post

10 October 2008 at 9:56am

Hey,

I've been trying to make it possible to download a file from the assets section without first opening the file details window. I have successfully added a new link in the list (AssertTableField.ss) which point directly at the file and works in Firefox. The problem is that in IE the detail window/iframe still opens. I then tried to make a Director::redirect of the frame in AssertTableField.php to the file hoping that would promt a download but I keep getting the 404 page instead.

Any idea how to circumvent the ajax detail window?

Any help is much appreciated.