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 ForumsRepositoryRepositoryKeep File NamesKeep File Names
Previous
 
Next
New Post
3/13/2008 2:51 PM
 

I've had this answered years before, but can't find that post.

We upgraded dnn to 4.08 recently and also updated the Repository module, which overwrote some 'customization' to the code.  Oops.  We want files uploaded and downloaded to retain thier original names instead of adding the random string of characters at the end when uploaded.  It was a very simple fix, one or two lines of code?  But can't find it now.  Repository module version 03.01.13

Thanks!

 
New Post
3/13/2008 3:36 PM
 

it would be in RepositoryBL.vb ... search the code for strGUID

or you could look at upgrading to 3.01.14 which let's you use the core URL control for uploading files, so you can upload a new file, select from an existing file on the server, etc. You just need to upgrade to 3.01.14 then change the [FILE] tokens in form.html to [URLCONTROLFILE] and any [IMAGE] tokens to [URLCONTROLIMAGE]. Then no filename mangling.

You can download the release candidate for 3.01.14 at
http://www.gooddogs.com/dotnetnuke/Downloads/tabid/57/Default.aspx

 

 
New Post
7/31/2008 12:47 PM
 

I appear to be having this issue with a repository that I have in place.  repository v3.01.14, DNN v4.8.4.

When we upload a file to our repository, the filename written to the database has the GUID included, and it appears that the file written to the server also includes the GUID, so the files aren't being found (I figured out that the code strips out the GUID in the database to retrieve the actual file name?).  So,,, I went through and removed all the GUID from the file names on the server, and the files could be found.

However, I need to make the change to URLCONTROLFILE so going forward the uploaded file names aren't mangled, but want to make sure where I need to make that change.  Is it in ALL the files called form.html in each repository template directory?  My client uploaded some updated files yesterday, and the files are now duplicated - one with the GUID, one without,,,,

as always, thanks for the help

Patty

 
New Post
7/31/2008 4:54 PM
 

if you are using the URLCONTROLFILE token in your form.html then the filename are not mangled at all. The file is uploaded using the core url upload control and all that's written to the repository table is something like "FileID=22" which is used as a foreign key into the core files table to find the actual file itself on the server.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryKeep File NamesKeep File Names


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