Hello ,
This is my first topic on kodular community.
I’m a newbie. I’m making an educational app. I need to download files from Google drive.
The files are saving as png (I can’t specify the file format, because sometimes the file may be pdf/png/mp4)and I don’t know how to get the file format from such a url(mentioned below)
Here is an example of link
https://drive.google.com/u/0/uc?id=1EyblOrEB6pJFLLT15IziIG772XhW4xvB&export=download (it’s a PDF file)
Blocks:
pleasese help me
Thanks in advance
1 Like
Actually the files are downloading and I can find it in my download folder.
https://drive.google.com/u/0/uc?id=1EyblOrEB6pJFLLT15IziIG772XhW4xvB&export=download
It’s actually a PDF file but it’s saving as png. Is there any way to get the file format?
1 Like
vknow360
(Sunny Gupta)
August 4, 2020, 9:09am
#5
It is quite difficult to get mime type of file from an indirect download link.
However, you can try using MimeType method of file tools extensions:
1.Introduction
FileTools
Probably you have read in title , the name of extension is FileTools and features are similar to its name.
It provides tools to work with Files and Folders.
Latest Version: 9
Last Updated: 2020-07-06T11:26:00Z (UTC)
2.Blocks
An image of blocks…
[image]
[image]
[image]
[image]
[image]
[image]
It has total 29 method blocks and 5 event blocks
3.Documentation
A brief documentation for FileTools:-
[component_method]
Returns path to application specific directo…
Also why are you not using the value of “mime type”?
1 Like
Thank you . But I need to get the file format before download starts. And then need to save the file with that format.
Here is what happened when I tried to download a PDF file through my app
Please please please please help me
vknow360
(Sunny Gupta)
August 4, 2020, 9:17am
#7
You made two mistakes recently.
mentioned/tagged users in your post
replied to me without trying to use what I have suggested
I hope you will correct these else you can expect to get no reply even after begging a lot.
What is mime type ? And is it possible to grab link
Is it possible to get the mime type for such a indirect url, actually I don’t have an idea about mime type but Googled it.
And sorry for those mistakes as I said I’m a newbie here.
Hey try this
It is the format of google drive link and download link
It is the method to grab Download link
Screenshot from deephost youtube channel not mine as video is in hindi so I can’t post here
This links works to download direct your file
https://drive.google.com/uc?export=download&id=1EyblOrEB6pJFLLT15IziIG772XhW4xvB
copy it and paste it in other tab you got result
4 Likes
Link in which written googleusercontent is private link
1 Like
its in download designer, u have to change default block setting.
default is newfile.png
delete .png and u will got your file