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 ForumsForm and ListForm and ListUDT file upload problemsUDT file upload problems
Previous
 
Next
New Post
9/10/2009 10:05 AM
 

without a doubt, UDT is best ever control Ive seen in any CMS. Idea behind is simply GREAT, but the implementation.....

Now in evaluation stage of project, where I want to use UDT (version 5.0.2) as smart document storage I notified few (small) problems ;)

my UDT structure is:

  • document (type download)
  • document description (richText)
  • approval status (text, list of values: sent to ap., wainting for ap., declined, approved)
  • county (text)
  • source tab (text with [Porta:tabID] token as this table is on multiple tabs)
  • some more fields for search, sort eg.

I have 2000 users (potentially 7000) and everybody will upload at least 10 docs (records) per year....

so first file upload dialog has simply horrible design. For unexperienced users overcompliated, only single file upload control would be much better instead of some browse of server folders and picking file from list of thousands....it tooks me 5 minutes to understand that I must confirm new file upload before submit data...

my user always want to upload new and never wants to select from allready uploaded ( I guess that others would agree in this point with me, data type is download not PickFromExistingHorriblyLongListAndMayBeDownload....)

then 2 users will upload document named meetingMinutes.pdf (both with same name but different content), the latest one will imediatelly overwrite first one in same destionation folder (without any warning !). ok I can define separate 2000 folders for 2000 users.... then setup folder rights,....hm it would take too much effort and also I would appreciate to keep all docs at single place even when opereate in database file system.....

breefly looking into source I found that it wouldnt be to difficult to change default URLControl to some other with better GUI but it solves not to much...

I vote for (and I plan to develop now):

enhance UDT settings properties by DefaultDataFolder for upload and img data types (similar as Document module has). If URLControl will find this property it can show just simple file upload control. May be even PreferUploadView property might be good in this case.... what other thinks about it ?

anyway to dont break compatibility and keep current version UDT,.... For store documents with same filename into single folder I plan to create new data type (Document). This would be almost same as download and img, but this will save into table field value 'OrigDocName=filename.ext;FileID=45', instead of only 'fileID=45' as download type do. Uploaded file will be renamed to {msGUID}.ext and saved as normal file in dnn file system on server db. When render url link to file in tableView user will see original filename instead of {msGUID}.ext. This new Document type would use different UrlControl for download to server with only browse button, so original UrlControl can remain same.

This resolves probably and hopefully all my issues + I can still love my UDT ;-)

Is anybody interested or do have similar problems ? Did I missed something ?

Adam.

 
New Post
9/10/2009 3:11 PM
 

Adam. did you read my blog about extending FnL with own DataTypes?

 
New Post
9/10/2009 4:17 PM
 

Stefan,

many thankx for nice and helpfull reply !! I will definitely use some pieces of your code at least to learn howto and may be for demo for customer ;-)

but finally I will have to resolve it more complex... I need to have separate folder for each instance of UDT because of too many documents. One instance will be shared by many pages and I need tenth of instances.

Also by quick review of your code I could'n see transaction mgmt, ... table record insert, edit, delete cases, Iguess that UDT moduel doesnt takes care of it,....

and I need to save into dnn db filesystem because of performance ( I dont want to split files into folders in ntfs)

this all will probably force me to update UDT sources ;-(, what do U think ?

 
New Post
9/10/2009 6:18 PM
 

Adam, you are right. The code inside the blog is just a starting place - you can do a lot without editing source, even the use of the dnn db filesystem.

Regarding transaction management, I can imagine a new extension point which would allow extenal code/assemblies to subscribe on CRUD events. Would that fit?

 
New Post
9/14/2009 3:30 AM
 

huh, I have finished the UDT code update...

Now I can create table with Document data type which uses very simple download (just textbox + browse button, <input type=file for programmers ;-) and can upload into any dnn filesystem, can upload single file multiple times. File got always different name but in table is stored FileID=xx|OrigFileName.ext. Very usefull feature.

Also UDT settings has been updated to let user select default folder for document data type. It can be any of dnn supported filesystem folder.

I am not VB.net programmer so I dont have vb studio and I converted UDT project into Visual Web Developer 2008 express.

one question still remains in my head,... I wish to delete uploaded file when record will be deleted, does anybody know how to do this right in dnn udt way ?

;-)

I've found delete functino but there is only tracking notification handler, should I extend this method and step over all columns in deleted row and ask if there is Document data type and if yes, delete file ?

A.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListUDT file upload problemsUDT file upload problems


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