Adding downloads

  • AMP Media
  • Newbie
  • Newbie
  • AMP Media
  • Posts: 14
  • Loc: London, UK

Post 3+ Months Ago

How can I add a file to my site so that others can download it? Using ultradev. It's only a WORD document....

Thanks
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9090
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

I am not sure how to use Ultradev, but it is usually pretty simple to add a file to your site for others to download. The first thing you need to do is upload the file to your web server and then simply make a link to that file, which would be just like any other link to a website or webpage. So for example if I upload a file called someprog.zip at ozzu I would link to it by using code such as:

Code: [ Select ]
<a href="http://www.ozzu.com/someprog.zip">someprog.zip</a>


Now as far as using Ultradev I would just try linking to it like you normally make links, or if you can insert HTML maybe use something like I showed you above.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

yes, just link to it the same way you would any other file on your server.
I would recommend using _blank on it tho. ;)
  • Steen
  • Proficient
  • Proficient
  • User avatar
  • Posts: 343

Post 3+ Months Ago

Why not have them input their email address and then your server sends them the file ?

if interested, it's .ASP


Using CDONTS to send a file attachment and have a Carbon Copy Recipient.


Code: [ Select ]
<%
  Dim MyBody2
  Dim MyCDONTSMail3
%>



<%
  Set MyCDONTSMail3 = CreateObject("CDONTS.NewMail")
  MyCDONTSMail3.From= "somebody@nowhere.com"
  MyCDONTSMail3.To= "nobody@nowhere.com"
  MyCDONTSMail3.Cc="nobody2@nowhere.com"
  MyCDONTSMail3.Subject="This is a Test"
  
  MyCDONTSMail3.AttachFile Server.MapPath("/somedirectory/bla.txt")
  ' or you could specify the path exactly if you knew it like below
  'MyCDONTSMail3.AttachFile ("C:\inetpub\wwwroot\somedirectory\bla.txt")
  
  MyBody2 = "Thank you for ordering that stuff" & vbCrLf
  MyBody2 = MyBody2 & "We appretiate your business" & vbCrLf
  MyBody2 = MyBody2 & "Your stuff will arrive within 7 business days"
  MyCDONTSMail3.Body= MyBody2
  MyCDONTSMail3.Send
  set MyCDONTSMail3=nothing
%>
  1. <%
  2.   Dim MyBody2
  3.   Dim MyCDONTSMail3
  4. %>
  5. <%
  6.   Set MyCDONTSMail3 = CreateObject("CDONTS.NewMail")
  7.   MyCDONTSMail3.From= "somebody@nowhere.com"
  8.   MyCDONTSMail3.To= "nobody@nowhere.com"
  9.   MyCDONTSMail3.Cc="nobody2@nowhere.com"
  10.   MyCDONTSMail3.Subject="This is a Test"
  11.   
  12.   MyCDONTSMail3.AttachFile Server.MapPath("/somedirectory/bla.txt")
  13.   ' or you could specify the path exactly if you knew it like below
  14.   'MyCDONTSMail3.AttachFile ("C:\inetpub\wwwroot\somedirectory\bla.txt")
  15.   
  16.   MyBody2 = "Thank you for ordering that stuff" & vbCrLf
  17.   MyBody2 = MyBody2 & "We appretiate your business" & vbCrLf
  18.   MyBody2 = MyBody2 & "Your stuff will arrive within 7 business days"
  19.   MyCDONTSMail3.Body= MyBody2
  20.   MyCDONTSMail3.Send
  21.   set MyCDONTSMail3=nothing
  22. %>



ps - Windows server only !
  • Gwamp
  • Newbie
  • Newbie
  • Gwamp
  • Posts: 7

Post 3+ Months Ago

Amp,

Did you manage to get it to download?

I am trying to get a .rar file to download but it opens a webpage and dumps text. I am using Frontpage.

Anyone knows the solution?

Gwamp...
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

lol talk about reviving a dead post!

It should work just by linking to the address. Try typing in the address to the file directly into your url bar. if this works the copy/paste the address into the href of the link.
  • gonetwork
  • Novice
  • Novice
  • User avatar
  • Posts: 24
  • Loc: Australia

Post 3+ Months Ago

you can also use a download manager which will show the amount of times it is downloaded, get the persons email and also hide the file so it cannot be hotlinked. If you want one of these just let me know I have one I coded about 2 yrs ago on my server.

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 48 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.