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...Skins, Themes, ...Skins, Themes, ...Default.aspx and/or Skin handling of files stored in File Manager (mp4 vs jpg)Default.aspx and/or Skin handling of files stored in File Manager (mp4 vs jpg)
Previous
 
Next
New Post
3/23/2013 7:31 PM
 

Have a query regarding how DNN handles links to files internally stored on it's file system.
The system being used is still running DNN4.9 whilst we are redeveloping for DNN6.

Since all the links to internal directories/files must presumably go through the main default.aspx handling I am wondering where to look for this info.

Specifically if I have an attachment that is for example a jpg in my file system say for example Portals\0\Attachments\nicelogo.jpg and build a url link to it such as "http://<mydomain>/Portals/1/Attachments/nicelogo.jpg" it all works nicely and I can see the image in my browser.
To my knowledge this also works perfectly in regards to PDF extensions, DOC extensions etc etc.

However if I change the host settings to allow someone to attach an mp4 extension the url "http://<mydomain>/Portals/1/Attachments/shortvideo.mp4" causes a 404/file not found error. 

Now I understand that HOW a file displayed in a browser is dependent on the browser etc - however the 404 error also means that Save Target etc are not working.

Having piled through aspects of the DNN source code I notice that in most DNN4 or previous versions none of the core libraries have mp4 in their content-type conversion/lookup functions. 

Is this the cause of the 404?  Is there a way to make an mp4 not return a 404 error? I don't care about how it presents on a browser, just want to make it accessible and downloadable once uploaded.

Thanks

 
New Post
3/24/2013 3:50 AM
 

Unless you are actually using the DNN file provider then there is actually no reason for the default handler to actually be processing you files.

HOWEVER you need to check a couple of things ... firstly that .mp4 is listed in the supported file types by dnn ... look in Host Settings -> Other Settings - Allowable File Extensions - if you want to be able to upload mp4 files.

Secondly - at this is more important since this is most likely what is blocking your mp4 files - not dnn - you need to verify that your SERVER is allowing you to serve you mp4 files - to do so you need to make sure that the .mp4 extension is configured as a supported mime type -  for  the ".mp4" extension the mime type needs to be"video/mp4".

Have a look at this discusion - http://forums.asp.net/t/1470612.aspx/1 - it talks about how to set the mime type for IIS - but depending on your hosting provider there are a number of ways it can be set - sometimes its just as easy to raise a help ticket.

Westa

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Default.aspx and/or Skin handling of files stored in File Manager (mp4 vs jpg)Default.aspx and/or Skin handling of files stored in File Manager (mp4 vs jpg)


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