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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUploading inside a popup - and synchronizing the filemanagerUploading inside a popup - and synchronizing the filemanager
Previous
 
Next
New Post
11/21/2012 12:20 PM
 

Hi,
 I use the DNN popup to display a module I've written in which I need to upload an image file.
The file should only be visible to the current user.

I can't use the standard ASP upload control as that has a limitation in that appatantly, it can't be used in popups - so I decided to use a much reduced version of the html editor (just the image upload bit) and that does the upload (clunky interface soltion, but whatever works...)

Problem is, I move the image to another place file folder outside the filemanager and I want to synchronize the filemanger to 'clear' the original folder.

I'm aware of the changes in the filesystem after DNN 6.0.0 and I've looked at the various references (and the code in /desktopmodules/admin/filemanager ) but I can't get my head round how I instance the portal filemanager

(VB)
?? dim q = DotNetNuke.Services.FileSystem.FolderManager
?? q.Synchronize

clearly isn't right.....

Anyone help here?

i) Better, less clunky way to upload an image file to a user invisible space (i.e. me.TemplateSourceDirectory/ClientImages.... )
ii) Failing that, How to synchronize the portal filemanager from module code?

 Any help appreciated!

regards,
Duncan

 

 
New Post
11/21/2012 5:41 PM
 
are you using DNN upload method (should be in DotNetNuke.Services.FileSystem.FileManager)?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/30/2012 6:49 AM
 

Hi Sebastion,

Sorry it's taken a while responding - I've been off in the long grass trying - with no success - to use the Infragistics upload control.

I've had to abandon that  (very frustrating as the control presentation is good).
I've also updated my development  framework to version 7.0.0 which also generates a few interesting challenges!

I had moved to the Infragistics control as I'd had an issue with the url control.

I'd set up this control point at a subdirectory of the filemanager - and it all worked fine.
My problem is that I then move this client-specific file to another place and wanted to programmatically re-synch the filemanger so that the next client  sees a clear folder...

How do I do that?

regards,
Duncan.

 
New Post
12/4/2012 5:22 AM
 

... A little progress.

I've updated the Filemanager permission settings to deny browsing access to all folders in the portals/0/ sub-directory set except for Administrators.

I then allowed browser access to the Security group that will use this module.

The result is that the user only sees the 'ClientImages' subdirectory in the urlcontrol when that control is set up as follows:

<dnn:UrlControl ID="dnnUpload" ShowLog="false" ShowNewWindow="false" ShowTrack="false" ShowImages="false" ShowNone="false" ShowTabs="false" ShowUrls="false" ShowUsers="false" ShowFiles="true" ShowUpLoad="true" runat="server"/>
(appreciate many of these are defaults and therefore uneccessary - but I'm experimenting.... :) )

So the only outstanding issue I have when using the urlcontrol in a DNN popup ... Called through the use of:
<a id="dnnModal" href=" dnnModal.show('http://localhost:13436/dnn700/Designer.aspx?popUp=true',false,650,1150,false)"><img width="200" height="25" alt="Start Product Design " src="~/DesktopModules/PM_Designer/Btn_StartProductDesign.png" /></a>

is that I after selecting 'Upload New File', I get the 'Upload Selected file' and 'Select an existing file' buttons - but the intervening File upload browsing page for the local file to upload doesn't appear until I click away from the control!

What am I missing?

regards
Duncan

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUploading inside a popup - and synchronizing the filemanagerUploading inside a popup - and synchronizing the filemanager


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