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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Generate files on server side and make them available through FileManagerGenerate files on server side and make them available through FileManager
Previous
 
Next
New Post
10/3/2008 11:53 AM
 

Hi,

I'm creating a module that generates files based on information provided by the user.

  • What I'm not sure is how do I create these files?
  • Can I use the FileManager package?
  • Is there a way to create temporary files?

 

Thanks in advance,

Marius.

 
New Post
10/3/2008 6:13 PM
 

Hey Marius,

I'd suggest looking around in the System.IO namespace for more information about creating files with .net.  Specifically the FileInfo class could help you: http://msdn.microsoft.com/en-us/library/system.io.fileinfo.aspx.

If you place the files in the appropriate directory (under the Portals folder, or under Portals/0 for example) they should be accessible through the FileManager ( you may need to "synchronize" the file system using the option in File Manager).

For your third question - I'd like to have a little bit more information - could you give an example of the scenario in which you'd like to create a temp file? Realistically any file can be temporary, you'll just be writing code to create it and delete it based on your particular conditions.

Hope that helps,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
10/4/2008 2:56 AM
 

Thanks Ian,

Hmm, if System.IO works ... then I gues any module can create/delete any file within the application server ... is this so ? ... I can have a trial module which if you don't buy ... will delete your portal

I guess I have to roll my own file (add/remove) manager and keep count of the portal id so that I don't mix up the files ... also there will be no user right checking by default.

Regarding temp files I was thinking more on the lines of a dedicated class for temp files ... like in ruby, perl ... or when you have a application deployed in JBoSS ...

 

Are there any other options for file management from within the application server?

Marius.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Generate files on server side and make them available through FileManagerGenerate files on server side and make them available through 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