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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Various ways to manipulate and view Images and other file types on DNN 8Various ways to manipulate and view Images and other file types on DNN 8
Previous
 
Next
New Post
12/29/2015 9:11 PM
 

Hi

Can anyone provide me with some guidance/insight on manipulating:
user - uploaded files (mainly images)
social group - uploaded files (mainly images) -- these are all files collectively uploaded by the users of the group or 
                          copied on demand from individual user's folder to group's folder (no upload needed)
I want then to present images in either user's or social group's folder and/or their subfolders in UI let's say paged slideshow.

Which of the following can I use to upload, create, modify, delete and retrieve in the browser?
- Using Imagehandler for viewing only 
- DigitalAssetsController 
- Folder Providers:
   Standard
   Secure
   Database

When I execute this statement:
     var groupFolder = FolderManager.Instance.AddFolder(portalSettings.PortalId, groupFolderPath);
which Folder I actually use? The one designated by:
  <folder defaultProvider="StandardFolderProvider"> in web.config I suppose. 
If I stick with one provider let's say Standard one and let's say I create a folder with it,
can i still secure that folder with SecureFolderProvider? Or I have to chance the folder provider type (if it is possible)
and then I will be able to use another Folder provider?

Thanks
Rad

 

 
New Post
12/30/2015 11:13 AM
 

AFAIK there is no (easy) way to switch/change the provider of a folder. And when manually doing it, you'll have to actually move (and perhaps transform) the files (not just the related DNN tables). Finally, most or all of the old file references (links to the files that could be embed in the site) will be broken.

Regarding handlilng files per user or group, , you can take a look at DNNUserFiles  http://www.evotiva.com/Products/DNN-U...

In this module, we created an own 'users' and 'groups' root folder, because the provider of dnn's default folders are still written in stone (using the standard' provider), but many users would like to have these root folders somewhere else, using a S3, Azure, Box, or whatever provider (e.g. using DNNGlobalStorage http://www.evotiva.com/Products/DNNGl...)

Does this reply looks too much like advertising? Maybe... OK, my bad...

 
New Post
12/30/2015 4:11 PM
 

Thanks @Horacio,

I will have a look at this. But, I am a developer and I wanted to do it myself. So what about using classes that I mentioned above or anything else that I am not aware of.

 
New Post
12/30/2015 5:10 PM
 

To manipulate files and folders, use: FileManager.Instance and FolderManager.Instance

Using them abstracts you from whatever folder provider is in use.

An example of the usage of this API can be found in the DNN core. For example: \Dnn.Platform\DNN Platform\Library\Services\Assets\AssetManager.cs

 

HTH


 
New Post
1/1/2016 6:42 PM
 

Tx. 

I would like to use SecureFolderProvider to avoid anonymous downloads for private files and use StandardFolderProvider for all users (unregistered and registered).
Can I manipulate files directly 
SecureFolderProvider if a host decided to use StandardFolderProvider?

I am trying to see how can I refer to the files no matter if they are secured or not

I don't understand what is written on this wiki: http://www.dnnsoftware.com/wiki/folder-types

" Files in these types of folders are only accessible via linkclick.aspx links, which allow DotNetNuke to verify permissions before deciding if the request should serve the file"

I heard there is a new Image handler to retrieve images in DNN 8. I am not sure if it can get a secure image. 

So what would be a a way to generate an MVC and a SPA link for getting images or documents that will be rendered (like imagers) or downloaded in the web browser?



 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Various ways to manipulate and view Images and other file types on DNN 8Various ways to manipulate and view Images and other file types on DNN 8


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