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...Help: Unzipping file(s) in the portals/0/ folder Help: Unzipping file(s) in the portals/0/ folder
Previous
 
Next
New Post
8/20/2007 10:26 PM
 
I am trying to create a module that will allow my users to upload and unzip file(s) in my portal. The zipped file will only include XML(s) files and I have the code that will delete all other types as soon as the zipped file is extracted. I got both the upload & the delete function (for non-XML files) working, but I have spent the whole day trying to write the code that will unzip the uploaded file using the same code in the filemanager.ascx.vb without a success. Does anyone know of an easier way to unzip the file? I have a feeling that I can not use DotNetNuke approach because it is checking if the user is using the host account or not. Any Help?
 
New Post
8/21/2007 5:16 AM
 

I don't see a reason, why you are unable to use DotNetNuke.Common.Utilities.FileSystemUtils even with a non admin user. you only need to make sure to add the file types to allowed file types in host settings, so uplodaing users are granted to upload the files.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/22/2007 5:20 PM
 
Thanks leupold for your reply. Whenever I used the FileSystemUrils.Unzip command I get the error "Object reference not set to an instance of an object". However, when debugging, the source-file, dest-folder and portalsettings all have values assigned to them. I even tried to hardcode both the sourcefile and destfolder without any success. The zipped file is being uploaded successfully, it is just the extrat does not work.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Help: Unzipping file(s) in the portals/0/ folder Help: Unzipping file(s) in the portals/0/ folder


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