How can I let users enter media source links from their cloud storage instead of uploading their media to my servers?

Instead of the traditional way of users uploading all of their media such as photos & videos to my servers, how can I code the HTML or HTML & JavaScript to allow users to enter the source link from their own server / cloud storage?