From the Firefox developer website, I know that Firefox uses
objectURL = window.URL.createObjectURL(file);
to get url of file type, but in chrome and other webkit browsers we have window.webkitURL.createObjectURL()
for detecting url.
I don't know how to swap this functions based on browser engines, and I need it to be worked on both browsers (Chrome and firefox)
https://developer.mozilla.org/en/DOM/window.URL.createObjectURL