hello i want to know about how to get exact file name of drive file using drive link
see below
That red color covered text is the exact file name. how do i get that help me
hello i want to know about how to get exact file name of drive file using drive link
see below
You will need to use a google apps script for that…
This should help you to a solution:
Here is a little web app that will return the filename:
function doGet(e) {
var fileId = e.parameter.fileId;
var file = DriveApp.getFileById(fileId);
var filename = file.getName();
return ContentService.createTextOutput(filename);
}
You would call this with the web component
Thanks for your reply. I have read all but where should I put that Google drive file link and in which web component block to be used.
I usually use web1.url
and web1.Get
to get firebase Json file. Here which block I have to use.
web2.url < scriptUrl
web2.postTest < fileId = <fileId of file here>
web2.gotText
responseContent will return the filename
You need to publish your web app to get the script url