Resumable_Upload_For_WebApps | sample script for uploading files | File Upload library
kandi X-RAY | Resumable_Upload_For_WebApps Summary
kandi X-RAY | Resumable_Upload_For_WebApps Summary
Resumable Upload for Web Apps using Google Apps Script.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Resumable_Upload_For_WebApps
Resumable_Upload_For_WebApps Key Features
Resumable_Upload_For_WebApps Examples and Code Snippets
Community Discussions
Trending Discussions on Resumable_Upload_For_WebApps
QUESTION
I'm implementing Kanshi Tanaike's Resumable Upload For Web Apps code and it works, but I don't fully understand the AJAX and am trying add a feature. Right now the code places the new file in the user's Drive root folder. I would either like to define a specific folder and upload there directly, or automatically move the file from root to the correct folder (I also need to collect the download link). I see the upload function references location in the response header, but I'm struggling to figure out how to define it, and since the doUpload() function does not seem to treat the upload as a File object I can't figure out how to reference it after the upload to acquire the URL or move it. Any feedback would be enormously appreciated.
...ANSWER
Answered 2020-Oct-13 at 21:56I believe your goal and your current situation as follows.
- You want to upload a file to the specific folder.
- You want to retrieve
webContentLink
of the uploaded file. - You want to achieve above using Resumable Upload for Web Apps using Google Apps Script
- You have already confirmed that the default script at the repository worked.
- In this case, it is required to check the resumable upload and the method of "Files: create" in Drive API.
- In order to upload the file to the specific folder, please add the folder ID to the request body of the initial request.
- In order to return the value of
webContentLink
, please usefields
value to the initial request.
When above points are reflected to the original script, it becomes as follows.
Modified script:In this case, HTML is modified.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Resumable_Upload_For_WebApps
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page