How to Change Share Links to Direct Links in Google Drive
Share links from Google Drive usually look like this:
https://drive.google.com/file/d/FILE_ID/view?usp=sharing
To create a direct link, do the following:
1. Identify the FILE_ID in the share link (the part after /d/ and before /view).
Example: If the share link is:
https://drive.google.com/file/d/1ABCD2345678EFGHIJKL90MNOPQ/view?usp=sharing
So, FILE_ID is: 1ABCD2345678EFGHIJKL90MNOPQ.
2. Use the following direct link format:
https://drive.google.com/uc?id=FILE_ID
Example for FILE_ID above:
https://drive.google.com/uc?id=1ABCD2345678EFGHIJKL90MNOPQ
Now you can use that direct link to embed the SVG or other Formats on your website.
3. Test Direct Link
Copy the direct link (https://drive.google.com/uc?id=...) and paste it into your browser to make sure the SVG file loads without error.
If the file doesn't load, double-check your file access settings in Google Drive.
No comments:
Post a Comment