Why you should never put all your files on a single Web Host

Why you should never put all your files on a single Web Host

I explain, Not long ago I buy a domain at a French WEB hoster whose name I will not mention, until all is well, I was given 2GB of space, 2 reception servers and send email to manage, but what they did not tell me is that there is also a QUOTA to watch. It really surprised me because I created a music sharing site and I added files regularly. I was really going up against this situation and I remember that there are several ways to store files on the WEB. In particular by putting them on another server.


So I turned on one of my online servers, Dropbox to be able to store my files and manage the QUOTA that I had to exceed otherwise it would have cost me $ 30 to increase my space.

Here's how I proceed:

1) First, I put my music on Dropbox
2) I share the link of my music, Yes because on Dropbox you can share links of your files to send them to other people, but only the people who have the link can see your content
3) Secondly in my music sharing site in the attribute:
 <audio controls = "controls" preload = "none">
  Your browser does not support the <code> audio </ code> element.
  <source src = "filenamefile.sonExtension" type = "audio / mp3">
</ Audio>
Instead of putting the music directly into the French version, I have it down on the server Dropbox and then I appealed to it in <source src = "lenomdufichier.sonExtension" type = "audio / mp3">
a) This image shows how I used to call music on the server

b) This new image shows how I'm using music located on the Dropbox server


What to remember is when I put the file on Dropbox and I did share it give me a URL but if you want to use this URL on another website for example to appeal to the latter in src = "" you have to add:
dl.dropboxusercontent.com
Example this is my mp3 file that I used on my sewer:
ate.mp3
After putting it on Dropbox, they gave me a link like this:
https://www.dropbox.com/s/m12nqaqkecnixln/YAMIdent_webres_clean.mov?dl=0
I just replace the: www.dropbox.com by
: dl.dropboxusercontent.com
And here is the trick is to play, you just have to pass your URL in the attribute src = ""

You like? do not hesitate to comment if some things escape you.
Follow me on youtube:

Commentaires

Posts les plus consultés de ce blog

Comment Creer un SERVEUR de Tchat entre Plusieurs ordinateur avec JAVA

Pourquoi il ne faut jamais mettre tous ses fichiers sur un seul Herbergeur WEB