Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-01-17 12:59:17

funtoosh
Member
From: Münster, Germany
Registered: 2006-10-09
Posts: 153
Website

How do I get The URL of an uploaded file? (not the download link)

Hi there,
for use with the jQuery jPlayer, i’d like to get the URL of an uploaded file – the txp download link will unfortunately not work with jPlayer (at least not x-browser, it works in FF only) …

Any ideas? Cheers, -F

Offline

#2 2011-01-17 13:41:14

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,254
Website GitHub Mastodon Twitter

Re: How do I get The URL of an uploaded file? (not the download link)

Did you try
yourrsite.tld/files/file_name.ext


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2011-01-17 16:24:10

funtoosh
Member
From: Münster, Germany
Registered: 2006-10-09
Posts: 153
Website

Re: How do I get The URL of an uploaded file? (not the download link)

sorry colak, maybe i should have been more specific: how do i dynamically get the URL of a file, txp-style?
so i was looking for sth. like <txp:file_url id=“5” /> …

Last edited by funtoosh (2011-01-17 16:37:55)

Offline

#4 2011-01-17 16:39:21

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: How do I get The URL of an uploaded file? (not the download link)

<txp:file_download_list id="5"><txp:site_url />files/<txp:file_download_name /></txp:file_download_list>

Code is topiary

Offline

#5 2011-01-17 17:08:03

funtoosh
Member
From: Münster, Germany
Registered: 2006-10-09
Posts: 153
Website

Re: How do I get The URL of an uploaded file? (not the download link)

thx jeff!! works!!

Offline

Board footer

Powered by FluxBB