Learn More





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 ExtensionsModulesModulesProblems using DnnFilePickerUploaderProblems using DnnFilePickerUploader
New Post
4/23/2013 9:46 AM

I want to be able to choose and upload image files in my module and I have been trying to use the DnnFilePickerUploader control, but it doesn't seem to work properly. I can see the file and folder combos, an area where one can "drop" a file, and an upload button. When I click the upload button I can choose the file to be uploaded, and when I do the file name is written on the upload button. But then nothing more happens, and there are no other button with which I can actually upload the selected file. Should the upload start immediately? I have a feeling that something important is missing. Is there any example somewhere of how to use this control?

New Post
4/23/2013 10:28 AM
Just saw how old this post was but I'm having some issues and in case anybody else comes across this ...

Your issue might be a folder permissions problem with the user not having access rights. Try creating a new folder to upload to using the DotNetNuke.Services.FileSystem.FolderManager class.

I'm also having a lot of issues trying to use this control though. I am able to upload files but when I actually choose the file to associate with the database record I get this error: "A critical error has occurred. Selection out of range Parameter name: value." It never even hits a breakpoint in my event so I'm assuming the error is coming on a Page_Load somewhere under the hood during the postback.

I would also like to hide other folders to force the upload into the folder of my choice to make things a little easier on the users of the control but I'm not really seeing any way to do that other than to use the user's local folder. Additionally, the FolderPath property doesn't seem to set the folder unless I'm not specifying it correctly, but without any documentation I'm not really sure if I am or not ...

This seems like it would be a very oft-utilized control, would love to seem some documentation on it's use.
New Post
4/23/2013 12:06 PM
Could be a permissions issue (the user doesn't have rights to upload to the folder you're trying to). I would also make sure all your javascript references are being loaded properly as the upload happens asynchronously (haven't dug deeper to find out if it's unobtrusive or not).

There does seem to be a bug or two in this control though. The FilePath property has an extra '/' between the folder and the file name (e.g. 'myfolder/subfolder//filename.ext') and even if I set the FileId on load it won't select the file. Is there a correct way to do this or is it a bug?
New Post
4/29/2013 11:20 AM
I actually decided to go with the UrlControl instead.
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesProblems using DnnFilePickerUploaderProblems using DnnFilePickerUploader

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.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?