You need to Register for free and Login to post a message in the forum.

Forum

Uploading an MP3 file to my website
Last Post 2010-02-09 05:34 PM by Lee Sykes. 6 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
BillUser is Offline
Nuke Active Member
Nuke Active Member
Posts:37

--
2010-02-08 11:28 PM
    Is there a trick to uploading an MP3 file to my website? Or even a better solution? I want to allow access to an MP3 file but allow access only to paid subscribers. I thought the best way to do this would be to upload the file to my site and then create a link on a secure page so only paying subscribers can hear it. Any help you can give would be appreciated. I tried the tutorials, but nothing hit me as relevant. Thanks, Bill Kidwell
    Joseph CraigUser is Offline
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9005
    Avatar

    --
    2010-02-08 11:41 PM
    That will work just fine. You could also put the link in a module that's visible only to the paying subscribers. Look at how the links to tutorials on this site appear only to subscribers.

    If you have lots of items, you may find it easier to use something like the Documents module, the Repository module, or a module like DMX Pro or others.

    I've even seen sites that use forums to distribute restricted files. Just create a forum that is restricted, and post a message with the restricted attachment to the message.

    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    BillUser is Offline
    Nuke Active Member
    Nuke Active Member
    Posts:37

    --
    2010-02-09 12:29 AM
    Joseph - Thanks, but I see my post was unclear. I tried to upload the MP3 and teh uplaod failed. No error message, but when I tried to find the file after it appeared to be completely uploaded it was not where to be found. So, is there a trick to uploading MP3's? Do I have to do something as an administrator or host to make sure MP3's are allowed? Thanks
    Joseph CraigUser is Offline
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9005
    Avatar

    --
    2010-02-09 01:13 AM
    Two things could go wrong.

    First, mp3 might not be an allowed file type.  You should have received an error message if that is the case.  But, you can check and adjust the list of allowed file types on the Host Settings page.

    Second, the file might be too large.  You adjust the maximum allowable file size by editing web.config.  The default value is 8 megs, if I recall correctly.

    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    BillUser is Offline
    Nuke Active Member
    Nuke Active Member
    Posts:37

    --
    2010-02-09 01:58 AM
    Joseph - I added the mp3 extenison to the list. It still diod not work. No error message but it did kick met to an IE Page Can't be displayed message after it was all"done". Where do I find the config file you menioned to increase the default size? My web files are stored on a remote server and I am not sure whether the config file you referenced is local and in Windows or where. Alss, if I have added the MP3 and can find the file to increase the size to something large enough to accomodate the 19 mb mp3 I'm trying to upload: 1) Should I set a file size larger than that to antiicpate otehr possible files later, and 2) what are the performance implications by taking the actions (mp3, files size increase) if I am able to figure out how. Do I need to know how to use FTP or Front Page to make a change to the config file if I can find it? Thanks, Thanks,
    Joseph CraigUser is Offline
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9005
    Avatar

    --
    2010-02-09 12:03 PM
    web.config is in the root directory of your DotNetNuke installation.  ALWAYS (!!) make a backup copy before you edit it.  ALWAYS!

    "There is a file size limitation in the default web.config.  You can increase the file size easily.  You may wish to adjust the timeout setting as well.  Here are the default lines from the web.config for 4.3.2:

    < !-- allow large file uploads - ->

    < httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" requestLengthDiskThreshold="8192"/ >

    Change the maxRequestLength and requestLengthDiskThreshold to whatever you wish.  The default timeout is in the machine settings but you can override it here.  So here's an example, you could change it to this to allow 10 meg files with up to 20 minutes of time to upload:

    < !-- allow large file uploads -- >

    < httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="10240" requestLengthDiskThreshold="10240" executionTimeout="1200" / >"



    This tutorial might be useful:  DotNetNuke File Manager

    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2010-02-09 05:34 PM
    If you are going to be uploading a lot of large MP3 files you may find it is best to use FTP, make a note of the URLs to those files and then just add the URLs directly into a documents module.

    Another consideration is if you are anticipating that the MP3 files will have a lot of traffic, it may be best to host them on a different server, such as Amazon S3. This will mean that when you have a large volume of downloads, it will not slow down your page load times on your main website - this may be a consideration for future use when your website is established.

    Thanks,
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    You are not authorized to post a reply.


    Active Forums 4.3

    Latest Forum Posts

    Enforce Terms Tutorial Update by Vistalogix Corporation
    I tried configuring my DNN 6.1.2 install to have a required "accept terms" checkbox as described in
    RE: Best Practices for Modifying a Custom Module by Joseph Craig
    Start up the development website, then install the module using the package that you have. Then, yo
    Best Practices for Modifying a Custom Module by schilders
    Good Morning, I'm needing to modify a custom built module created by another developer targeted f
    RE: Admin menu problem by alireza arabiyan
    hi in localhost i have http://localhost/senf/خانه.aspx and http://localhost/senf/Admi
    RE: Admin menu problem by Joseph Craig
    Yes, that is what you should have done. What is the URL for your home page? What is the URL for
    RE: Admin menu problem by alireza arabiyan
    hi first in localhost i add my domain.com as portal alias. then copy all files to host , restore my
    RE: Admin menu problem by Joseph Craig
    How did you move it? Have you added an entry in the portalalias table for the site's domain name?
    RE: Re: SQL SERVER 2008 R2 Remote connection by Joseph Craig
    Set up a user with dbo privileges and set the connection string for that user, rather than using Win
    Re: SQL SERVER 2008 R2 Remote connection by Prakasam Srinivasan
    I have successfully configured MSSQL Server 2008 r2 remote connection. I am using windows 7 and it h
    Admin menu problem by alireza arabiyan
    hi i installed dnn 6 on localhost and move it in my host, all link's , pages and modules are ok,
    RE: dnn 4.4 upgrade issue by imran shaikh
    Thanks you all it is done by renaming release.config to web.config procedure
    RE: dnn 4.4 upgrade issue by imran shaikh
    Thanks you all it is done by renaming release.config to web.config
    dnn 4.4 upgrade issue by imran shaikh
    hi this is imran i am upgrading dnn 4.4 to dnn 6.0.2 and getting this error please help me for this
    RE: How to build Skins for DNN 6.x by Joseph Craig
    I'd recommend that you try replacing the hard-coded text with the DotNetNuke Text skin object. That
    RE: Module permission does not work! by Joseph Craig
    What permissions have you give to that role?
    RE: DNN nav issue by Joseph Craig
    Are you using a custom skin? How often does this happen?
    RE: Friendly URLs Broken by Joseph Craig
    I don't entirely understand this, but I'm glad you got things working.
    RE: How to build Skins for DNN 6.x by Christopher Adamakis
    Dear all, I have one more question regarding greek fonts. If you check my site http://www.expertsoft
    RE: Dnn local setup problem by imran shaikh
    this is error is resolve now now getting this one Server Error in '/cooperpharma.ma' Applicat
    RE: Module permission does not work! by Abraham Tameru
    I created a special role for the user to administer the site. The user is not a member of the Admini
    You are not logged in.
    You must log in to access all 
    650+ videos, tutorials, podcasts, and more.
    RSS Feeds