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

Forum

Subject: Uploading an MP3 file to my website
Prev Next
You are not authorized to post a reply.

Author Messages
Bill
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:31

08 Feb 2010 5: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 Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5311


08 Feb 2010 5: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 the website
Bill
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:31

08 Feb 2010 6:29 PM  
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 Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5311


08 Feb 2010 7:13 PM  
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 the website
Bill
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:31

08 Feb 2010 7:58 PM  
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 Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5311


09 Feb 2010 6:03 AM  
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 the website
Lee Sykes
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5282


09 Feb 2010 11:34 AM  
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/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > Users Lounge > Everything Else > Uploading an MP3 file to my website



ActiveForums 3.7

Latest Forum Posts

extending user accounts for membership by cbwardsr
could someone pt me in the direction of some literature regarding adding fields to user accounts. ...
RE: Strange behaviour when pressing login by pontus66
Problem solved!Though I am not sure how. I haven't talked to my programmer yet, but he sent a mail a...
Dynamic Forms Email From User/Pass by Trusted
Hello everyone, We have a client with restrictive mail policies so a username and password is requi...
Using Default Template for Pages by toddre
I have a default template that I would like all Admins to use when creating new pages. I would also ...
RE: DataSprings Dynamic Forms Demo #20 Question by aggiedan97
Thanks for the feedback. I will let you know what I find and I have posted on the DS forum. So far ...
RE: ITextSharp by leesykes
Glad you got it sorted, what was the solution for anyone else searching for this problem?
RE: DataSprings Dynamic Forms Demo #20 Question by leesykes
Hello,This is not something I have explored yet, but as it happens I am going to be building a form ...
DataSprings Dynamic Forms Demo #20 Question by aggiedan97
I am attempting to build an order form that subtotals a section that is based on the 'TotalByQuan&nb...
RE: Shared Same content in Sub portals/ Childportals by leesykes
Hello,Your other option is to use RSS feeds for sharing content. Setup a module on your main site su...
RE: Should I be able to use a plain submit button in my module? by DiscoStu1975
Hi I used an ASP:button control originally and that produced exactly the same error with JS disa...
RE: Strange behaviour when pressing login by jncraig
Hmmm, I think that I have seen something like this before, but I'm having trouble remembering the ex...
RE: Shared Same content in Sub portals/ Childportals by jncraig
There are modules available that will permit you to share pages, modules and user among portals in a...
RE: Should I be able to use a plain submit button in my module? by jncraig
Using a form submit button won't work. If you use an ASP:button control that will work as clicking ...
RE: Should I be able to use a plain submit button in my module? by DiscoStu1975
Hi Joseph Thanks for the response. I am using an html input of type submit, yes. When you say a l...
RE: Should I be able to use a plain submit button in my module? by jncraig
Are you using a form submit button? Try just just using a link and see if that works.
RE: Removing the filed by jncraig
I don't know an easy way to do that, short of editing the ascs file that displays that information. ...
RE: ITextSharp by jumatthey
Problem solved.
Removing the filed by kaustav_kar
Hi,I want to remove the option Display Name from this page. http://whydiet-com.stagemefaster.com/hom...
Should I be able to use a plain submit button in my module? by DiscoStu1975
I have developed a module that is basically a simple data capture form. As I need the form to work w...
RE: Links by rajanijadhav
I have another question,in paypal integration for payment i have used [script removed]
DotNetNuke Modules
RSS Feeds