- The other option is to have a shared folder in Google Drive but it has limitations. First, you need to have a Gmail account and be invited by the folder owner to upload files in a shared folder. Second, all collaborators can view and even remove files that have been uploaded in a shared folder on Google Drive.
Upload Files to Google Drive via HTML Form
- Sign in to your Google account and go to https://www.google.com/script/start/ and click on the Start Scripting button
- Paste the code below into the *.gs file and save
https://pastebin.com/kFj7HUnt
- Next, create a file with the name form.html by going to menu File -> New -> Html file
https://pastebin.com/6m7EDrgd
- At menu Run -> doGet to authorize the script. So that it can upload files from form.html to your Google Drive
- Next, select Publish -> Deploy as web app and click Save New Version, grant access to the app by selecting the drop down menu (you can choose anyone can upload files to your Google Drive) by selecting Anyone, even anonymous). And you will be given an address where anyone can access it to upload files to your Google Drive.
DEMO : https://www.hungvb.com/upload
Wished everyone success
Thanks For Watching.
Link die.
ReplyDeletecode này còn dùng được k e?
ReplyDeletek dùng đc nữa c nhé.
Deleteupload google? why so redirect upload img ?
ReplyDelete