Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepository[FILEURL] not including GUID[FILEURL] not including GUID
Previous
 
Next
New Post
4/19/2008 11:53 AM
Accepted Answer 

first, it's a bug ( damn ). the GUID is being extracted when it shouldn't.

secondly, yes, you are correct, the whole concept of injecting the GUID was to make it extremely difficult for unauthorized people to download files through any means other then the controlled method of doing so through the module.

third, the whole GUID concept is a hold-over from the early 'gooddogs' days before the module became part of the core. in the new version (3.01.14) currently in the tracker, I have added the ability to continue using the built-in GUID method, OR you can switch all your [FILE] and  [IMAGE] tokens in your form.html files to [URLCONTROLFILE] and [URLCONTROLIMAGE] which will use the core upload and download methods and not inject the GUID.

so, it appears that the only way to solve your current issue is to upgrade to 3.01.14 and switch your tokens to use the new URL Control versions. Then the [FILEURL] token will work as expected.

Sorry you are having this problem.

 
New Post
4/20/2008 3:20 AM
 

Steve Fabian wrote

first, it's a bug ( damn ). the GUID is being extracted when it shouldn't.

secondly, yes, you are correct, the whole concept of injecting the GUID was to make it extremely difficult for unauthorized people to download files through any means other then the controlled method of doing so through the module.

third, the whole GUID concept is a hold-over from the early 'gooddogs' days before the module became part of the core. in the new version (3.01.14) currently in the tracker, I have added the ability to continue using the built-in GUID method, OR you can switch all your [FILE] and  [IMAGE] tokens in your form.html files to [URLCONTROLFILE] and [URLCONTROLIMAGE] which will use the core upload and download methods and not inject the GUID.

so, it appears that the only way to solve your current issue is to upgrade to 3.01.14 and switch your tokens to use the new URL Control versions. Then the [FILEURL] token will work as expected.

Sorry you are having this problem.

Hey no need to appologuise!  That's all part of software development, I'm glad I found something rather than just using it incorrectly :-P

I've just checked what version I have and it is 3.01.14, so all is good on that front.  Although I'm a little confused now, will this help me resolve the URLs to files that I have already uploaded or does it mean that I have to upload again?  This shouldn't be a problem really because I only have 4 MP3's on there at the moment, but my other repository which uses ZIPs would take days to reupload :(  Basically all I was doing was embedding a small flash MP3 player into theTemplate.html for each MP3 file.

Anyways, I'll mod the MP3 templates so that it has the other tokens in for now, thanks a million for your time! :)

 
New Post
4/20/2008 3:55 AM
 

Oops!  Having done as you suggested and uploaded an MP3 to Root, as no other folders were visible, the path returned by FILEURL is incorrect as it points to the Repository.  I think I should be able to get around this though...

 
New Post
4/20/2008 4:16 AM
 

For anyone else needing to fix the URL, the JAVA script is as follows, (mp3file = [FILEURL])

var lastSlash = mp3file.lastIndexOf("/");
var siteRoot = "http://www.djabstraction.com/dnn/Portals/0"         //Root folder where file is uploaded to
var trimName = mp3file.substring(lastSlash, mp3file.Length);
mp3file = siteRoot + trimName;

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepository[FILEURL] not including GUID[FILEURL] not including GUID


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out