Skip to main content

Extract File ID From Google Drive File Link Using Javascript

Firstly Add This Function 

function getIdFromUrl(url) { return url.match(/[-\w]{25,}/); }

Now , Your File ID will be  getIdFromUrl(url)[0]

Try It Here :-

GDThumb

ID will be Appear in Console and alerted too ...





See Drive Thumbnail Downloader Based on This Technique :-https://toolade.surge.sh/drive_thumbnail_downloader/

Comments

Random Posts