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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryAdd new file extension to allowed file typesAdd new file extension to allowed file types
Previous
 
Next
New Post
12/2/2006 10:54 PM
 

Hi,

I can not see how to add a new file type to the allowed file types

I want to put some autocad and 3d files

there was a mention of components/conifg .vb

this does not exist in my dnn 4 install nor is it under the desktop modules folders

there does not appear to be any database table for the gallery so where does it get the info from

Wayne

 
New Post
12/3/2006 4:16 AM
 
Host Settings - Other settings
 
New Post
12/3/2006 11:29 PM
 

I started by adding it in the host settings however

That does not seem to help with the Gallery it still say's  .dwg is not an acceptable file type.

 

 
New Post
12/4/2006 11:10 AM
 

You are right with your thoughts.  The allowable file type are stored in the config.vb file.  (note there is a separate setting for movies and flash files)

 

The reason you don't see this file as it is compiled into the gallery.dll file.  It is only available if you download the source code.  If you wanted to download the source code, you could change this value, and then recompile the dll....

but....  There is more in the code than just listing valid image types.  The code takes each of the image files and resizes and converts them.  So the code would probably fail as .NET doesn't have any build-in way to resize a .dwg file.  Also when displayed to the user, the average users web browser doesn't know how to display a .dwg..  So the reason the list is only those selected file types, is that this is what the average browser supports.

Now, if you feel like experiments.  You can download my .Net 2.0 version of the code (www.Jegers.com)   The config.vb file is readily available (you don't need to recompile anything), modify it by adding your extention to the config.vb file (either in the image or movie section), and give it a try. 

Good luck!

 

   Public Shared ReadOnly Property DefaultFileExtensions() As String
      
Return permittedFileTypes(".jpg;.gif;.bmp;.png;.tif")
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryAdd new file extension to allowed file typesAdd new file extension to allowed file types


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