The DOM URL.createObjectURL() and URL.revokeObjectURL() methods let you create simple URL strings that can be used to reference any data that can be referred to using a DOM File object, including local files on the user's computer. When you have a File object you'd like to reference by URL from HTML, you can create an object URL for it like this: