1/*! For license information please see 411.eb13cc6c.chunk.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunkfrontend=globalThis.webpackChunkfrontend||[]).push([[411],{1140(e,r,s){s.d(r,{Zp:()=>l});var t=s(5043),o=s(9766),a=s(579);const l=t.forwardRef((e,r)=>{let{className:s,...t}=e;return(0,a.jsx)("div",{ref:r,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",s),...t})});l.displayName="Card";t.forwardRef((e,r)=>{let{className:s,...t}=e;return(0,a.jsx)("div",{ref:r,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",s),...t})}).displayName="CardHeader";t.forwardRef((e,r)=>{let{className:s,...t}=e;return(0,a.jsx)("div",{ref:r,className:(0,o.cn)("font-semibold leading-none tracking-tight",s),...t})}).displayName="CardTitle";t.forwardRef((e,r)=>{let{className:s,...t}=e;return(0,a.jsx)("div",{ref:r,className:(0,o.cn)("text-sm text-muted-foreground",s),...t})}).displayName="CardDescription";t.forwardRef((e,r)=>{let{className:s,...t}=e;return(0,a.jsx)("div",{ref:r,className:(0,o.cn)("p-6 pt-0",s),...t})}).displayName="CardContent";t.forwardRef((e,r)=>{let{className:s,...t}=e;return(0,a.jsx)("div",{ref:r,className:(0,o.cn)("flex items-center p-6 pt-0",s),...t})}).displayName="CardFooter"},4792(e,r,s){s.r(r),s.d(r,{default:()=>u});var t=s(5043),o=s(3198),a=s(7660),l=s(2592),n=s(1140);const d=(0,s(1212).A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);var i=s(7819),c=s(6833),x=s(2313),m=s(6328),h=s(579);function u(){const[e,r]=(0,t.useState)(""),[s,u]=(0,t.useState)(""),[b,g]=(0,t.useState)("");(0,o.A)({title:"Google Drive Public Link Generator & Direct Link Generator",description:"Free Google Drive Public Link Generator. Easily create direct download links for your Google Drive files. Bypass the preview page with our Google Drive Direct Link Generator."}),(0,t.useEffect)(()=>{const e=document.createElement("script");return e.type="application/ld+json",e.id="breadcrumb-json-ld",e.innerHTML=JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://uploadtourl.com/"},{"@type":"ListItem",position:2,name:"Google Drive Public Link Generator",item:"https://uploadtourl.com/google-drive-direct-link-generator"}]}),document.head.appendChild(e),()=>{const e=document.getElementById("breadcrumb-json-ld");e&&document.head.removeChild(e)}},[]);return(0,h.jsxs)("div",{className:"min-h-screen bg-background text-foreground flex flex-col font-sans selection:bg-brand/30",children:[(0,h.jsx)(a.A,{}),(0,h.jsxs)("main",{className:"flex-1",children:[(0,h.jsxs)("section",{className:"relative pt-32 pb-20 md:pt-40 md:pb-32 overflow-hidden bg-card border-b border-border",children:[(0,h.jsx)("div",{className:"absolute inset-x-0 top-0 h-96 bg-gradient-to-b from-brand/10 to-transparent pointer-events-none"}),(0,h.jsxs)("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10 text-center mb-12",children:[(0,h.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-brand-tint border border-brand/20 text-brand text-sm font-medium mb-8",children:[(0,h.jsx)(d,{className:"w-4 h-4"}),"Free Tool"]}),(0,h.jsxs)("h1",{className:"text-4xl md:text-6xl font-bold tracking-tight mb-6",children:["Google Drive ",(0,h.jsx)("br",{}),(0,h.jsx)("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-brand-from to-brand-to",children:"Public Link Generator"})]}),(0,h.jsxs)("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:["Use our ",(0,h.jsx)("strong",{children:"Google Drive Public Link Generator"})," to create a direct download link for files you have stored in Google Drive. This ",(0,h.jsx)("strong",{children:"Google Drive Direct Link Generator"})," tool will immediately start downloading the file, rather than opening a preview page."]})]}),(0,h.jsx)("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:(0,h.jsx)(n.Zp,{className:"bg-card border border-border p-8 md:p-10 rounded-3xl shadow-2xl text-left",children:(0,h.jsxs)("div",{className:"space-y-6",children:[(0,h.jsxs)("div",{children:[(0,h.jsxs)("label",{htmlFor:"sharing-url",className:"block text-sm font-medium text-foreground
2/80 mb-2",children:["Enter your sharing URL: (",(0,h.jsx)("a",{href:"#instructions",className:"text-brand hover:underline",onClick:e=>{var r;e.preventDefault(),null===(r=document.getElementById("instructions"))||void 0===r||r.scrollIntoView({behavior:"smooth"})},children:"Scroll down for instructions"}),")"]}),(0,h.jsx)("input",{id:"sharing-url",type:"url",value:e,onChange:e=>r(e.target.value),placeholder:"https://drive.google.com/file/d/1LDR.../view?usp=sharing",className:"w-full bg-background border border-border rounded-xl px-4 py-3 text-foreground placeholder-muted-foreground focus:outline-none focus:ring-2 focus:ring-brand focus:border-transparent transition-all"}),b&&(0,h.jsxs)("p",{className:"mt-2 text-sm text-red-500 flex items-center gap-1",children:[(0,h.jsx)(i.A,{className:"w-4 h-4"}),b]})]}),(0,h.jsx)("div",{className:"pt-2",children:(0,h.jsxs)("button",{onClick:()=>{if(g(""),u(""),!e.trim())return void g("Please enter a Google Drive sharing URL.");const r=(e=>{try{let r=null;if(e.includes("/file/d/")){const s=e.split("/file/d/");s.length>1&&(r=s[1].split("/")[0])}else e.includes("id=")&&(r=new URL(e).searchParams.get("id"));return r&&r.includes("?")&&(r=r.split("?")[0]),r}catch(r){return null}})(e);r?(u(`https://drive.google.com/uc?export=download&id=${r}`),m.oR.success("Direct link generated successfully!")):g("Could not extract a valid Google Drive File ID. Make sure the URL is correct.")},className:"w-full bg-brand hover:bg-brand/90 text-brand-foreground font-bold py-4 px-6 rounded-xl transition-colors duration-200 flex items-center justify-center gap-2 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-background focus:ring-brand",children:[(0,h.jsx)(d,{className:"w-5 h-5"}),"Create Direct Download Link"]})}),s&&(0,h.jsxs)("div",{className:"pt-6 mt-6 border-t border-border animate-in fade-in slide-in-from-bottom-4 duration-500",children:[(0,h.jsxs)("label",{className:"block text-sm font-medium text-success mb-2 flex items-center gap-2",children:[(0,h.jsx)(c.A,{className:"w-4 h-4"}),"Output Download Link"]}),(0,h.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,h.jsx)("input",{readOnly:!0,value:s,className:"flex-1 bg-card border border-success/30 rounded-xl px-4 py-3 text-foreground focus:outline-none selection:bg-success/30"}),(0,h.jsxs)("button",{onClick:()=>{s&&(navigator.clipboard.writeText(s),m.oR.success("Link copied to clipboard"))},className:"bg-card hover:bg-accent border border-border text-foreground font-medium py-3 px-6 rounded-xl transition-colors duration-200 flex items-center justify-center gap-2 shrink-0",children:[(0,h.jsx)(x.A,{className:"w-4 h-4"}),"Copy"]})]})]})]})})})]}),(0,h.jsx)("section",{className:"py-12 bg-background",children:(0,h.jsx)("div",{className:"max-w-3xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,h.jsxs)("div",{className:"bg-card/50 border border-border/80 rounded-2xl p-6 md:p-8",children:[(0,h.jsxs)("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2",children:[(0,h.jsx)(i.A,{className:"w-5 h-5 text-brand"}),"Notes"]}),(0,h.jsxs)("ul",{className:"space-y-4 text-muted-foreground text-sm md:text-base leading-relaxed",children:[(0,h.jsxs)("li",{className:"flex gap-3",children:[(0,h.jsx)("div",{className:"mt-1 w-1.5 h-1.5 rounded-full bg-brand shrink-0"}),(0,h.jsxs)("p",{children:[(0,h.jsx)("strong",{className:"text-foreground",children:'Make sure your file\'s visibility in Google Drive is set to "Anyone with the link".'})," If it's set to \"Restricted\" then only people who are logged in to Google and have been granted access to the file will be able to open the direct link (which probably isn't what you want)."]})]}),(0,h.jsxs)("li",{className:"flex gap-3",children:[(0,h.jsx)("div",{className:"mt-1 w-1.5 h-1.5 rounded-full bg-brand shrink-0"}),(0,h.jsx)("p",{children:"This only works for uploaded files, not documents created in Google Docs/Sheets/Slides."})]}),(0,h.jsxs)("li",{className:"flex gap-3",children:[(0,h.jsx)("div",{className:"mt-1 w-1.5 h-1.5 rounded-full bg-brand shrink-0"}),(0,h.jsx)("p",{children:"If your file is very large, the direct link may first open a page saying that the file is too large for Google to scan for viruses. That page will have a button to download the file."})]})]})]})})}),(0,h.jsx)("section",{id:"instructions",className:"py-16 md:py-24 border-t border-border",children:(0,h.jsxs)("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,h.jsx)("h2",{className:"text-3xl md:text-4xl font-bold mb-12 text-center",children:"How to use the Google Drive Public Link Generator"}),(0,h.jsxs)("div",{className:"space-y-16",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("h3",{className:"text-2xl font-bold mb-6 text-foreground",children:"How to Get Your Sharing URL"}),(0,h.jsxs)("div",{className:"space-y-12",children:[(0,h.jsxs)("div",{className:"bg-card border border-border rounded-2xl p-6 md:p-8",children:[(0,h.jsx)("h4",{className:"text-xl font-semibold mb-4 text-brand",children:"Step 1:"}
2),(0,h.jsx)("p",{className:"text-foreground/80 mb-6",children:'Go to Google Drive and right click the file that you want to share, then click on "Share"'}),(0,h.jsx)("img",{src:"/assets/images/step1-googledrive.png",alt:"Google Drive Share Option",className:"rounded-lg shadow-lg border border-border max-w-full h-auto"})]}),(0,h.jsxs)("div",{className:"bg-card border border-border rounded-2xl p-6 md:p-8",children:[(0,h.jsx)("h4",{className:"text-xl font-semibold mb-4 text-brand",children:"Step 2:"}),(0,h.jsx)("p",{className:"text-foreground/80 mb-6",children:'In the window that comes up, change the access to "Anyone with the link"'}),(0,h.jsx)("img",{src:"/assets/images/step2-googledrive.png",alt:"Change access to Anyone with the link",className:"rounded-lg shadow-lg border border-border max-w-full h-auto"})]}),(0,h.jsxs)("div",{className:"bg-card border border-border rounded-2xl p-6 md:p-8",children:[(0,h.jsx)("h4",{className:"text-xl font-semibold mb-4 text-brand",children:"Step 3:"}),(0,h.jsx)("p",{className:"text-foreground/80 mb-6",children:'Click "Copy link"'}),(0,h.jsx)("img",{src:"/assets/images/step3-googledrive.png",alt:"Copy link button",className:"rounded-lg shadow-lg border border-border max-w-full h-auto"})]}),(0,h.jsxs)("div",{className:"bg-card border border-border rounded-2xl p-6 md:p-8",children:[(0,h.jsx)("h4",{className:"text-xl font-semibold mb-4 text-brand",children:"Step 4:"}),(0,h.jsx)("p",{className:"text-foreground/80",children:'Paste that link into the text box above and click "Create Direct Download Link" to create your link. Enjoy!'})]})]})]}),(0,h.jsxs)("div",{className:"mt-16 pt-16 border-t border-border",children:[(0,h.jsx)("h3",{className:"text-2xl font-bold mb-6 text-foreground",children:"How Does it Work?"}),(0,h.jsxs)("div",{className:"bg-card border border-border rounded-2xl p-6 md:p-8 space-y-6 text-muted-foreground leading-relaxed",children:[(0,h.jsx)("p",{children:"This site takes your sharing URL, which is a URL that looks something like this:"}),(0,h.jsx)("div",{className:"bg-background px-4 py-3 rounded-lg font-mono text-sm text-foreground/80 break-all border border-border",children:"https://drive.google.com/file/d/1LDRlyZaZTF-bxHjBDEiL2obMxYHtf3YT/view?usp=sharing"}),(0,h.jsxs)("p",{children:["And it extracts the file ID, the part between ",(0,h.jsx)("code",{children:"/d/"})," and ",(0,h.jsx)("code",{children:"/view"}),", and puts it into a new URL which looks like this:"]}),(0,h.jsx)("div",{className:"bg-background px-4 py-3 rounded-lg font-mono text-sm text-success break-all border border-success/20",children:"https://drive.google.com/uc?export=download&id=1LDRlyZaZTF-bxHjBDEiL2obMxYHtf3YT"}),(0,h.jsxs)("p",{children:["And that's it! The new URL format causes Google Drive to serve the file directly as a download, instead of opening a preview. This ",(0,h.jsx)("strong",{children:"Google Drive Direct Link Generator"})," just makes the process simple and fast. The conversion happens entirely in your browser, your sharing URL is never sent or stored anywhere."]})]})]})]})]})})]}),(0,h.jsx)(l.A,{})]})}},6833(e,r,s){s.d(r,{A:()=>t});const t=(0,s(1212).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])}}]); 3//# sourceMappingURL=411.eb13cc6c.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.