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 ForumsRepositoryRepositoryrepository document link changes after every uploadrepository document link changes after every upload
Previous
 
Next
New Post
11/17/2009 12:24 PM
 

on our repository, we link to some of the documents from elsewhere on our site.

however, every time one of the repository documents gets updated (new doc uploaded), the links from other pages on the site which link to the newly uploaded document no longer work.

I believe each repository document is unique and probably why the links break each time.
But is there a way around this whereby we can safely renew documents in the repository and any links elsewhere on the site which link to the repository docs remain intact?

 

 
New Post
11/17/2009 1:57 PM
 

Initially, the repository module utilized it's own file upload mechanism, and because at the time, there was no secure file storage solution built into the core, the repository module injected a Guid into the filename to 'psudo' secure it. When the core added secure file storage, that mechanism was no longer needed,  but to prevent breaking all of the existing modules out there, support for the default upload method was retained.

If you edit your form.html file and simply change all your [FILE] and [IMAGE] tags to [URLCONTROLFILE] and [URLCONTROLIMAGE] respectively, then you will be using the core URL control to upload your files and their filenames will not be mangled. Then, when you update a file, the original file will be overwritten but the filename will remain the same and your external links will not be broken.  NOTE: This change will only work for new files uploaded after changing the tokens. The existing files will remain mangled and the repository module can tell by the filename format how to retrieve the file when a user clicks on the download link.

However, I believe if, after you change the tokens, you simply go back and EDIT each item, resaving it will save it without the Guid, but I'm not 100% sure.

 
New Post
11/30/2009 9:11 AM
 

Thanks,
It does indeed work after changing the tokens [URLCONTROLFILE].

And all documents can now be overwritten when updated.

On a slighlty separate note; there were 2 documents which, when re-uploading fail to open when given the same name as previously in use.
error = unknown file type (I only have option to FIND or SAVE, but when selecting SAVE, it won't open afterwards either as it's still an unknown filetype)

I can rename the exact same documents and they open ok, no problem, but when changing back to the original name - they won't open again.
I have removed from File Manager and tried again,
I have tried uploading via File Manager and browsing to the stored document,
I have tried re-uploading the same document under a different repository upload area,

...but still the same problem: I have to give the PDF documents a different name to the one initially in use or it will not open.

(I'm not sure how, but i've created a bug somehow, possible by uploading a copy of a document and giving it the same name as it had when it had a guid)
 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryrepository document link changes after every uploadrepository document link changes after every upload


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