Hello all,
I’m trying to download a list of files hosted on Google Drive.
I read this and i currenly use direct link of every file ( https://drive.google.com/uc?export=download&id=FILE_ID).
I tested with:
• Download component: i’am able to download same file 3 to 5 time and then i got “Download unsuccessful”,and i do not want the download history, and it’s very slow (20kb/s) compared to manuel download, and i have to move the file from Downlod folder to my app folder.
• ExtendedDownloader extension: work at the beging, now do not download nothing, without any error.
• GET from Web componant: download same file a few time and then return error code 403 with message “Sorry...but your computer or network may be sending automated queries". To protect our users, we can't process your request right now”. see “Unusual traffic from your computer network”.
I do not necessary need to download it multiple time for the app user but for testing yes.
What is the solution for that? do have to use the Google API?
Any trick?
Replace DRIVE_FILE_ID with the ID and use Download Component set the url and your file will be Downloaded.
Thx @vknow360 for this.
If you want to extract file id from url use this method.
In this method the url is split at Every “/” and returns a list. The File ID is the “6th” item of the list.
Now just use join block to form the Download url.
I have made a simple app to perform download of G-drive file with Above Method.
APK : Ddrive_Download.apk (5.4 MB)
Thanks for this but do not andestand what you are trying to do.
If you use the default shared link when you try to download it you should get a html page rigth?
Like i said i use the direct download link https://drive.google.com/open?id=DRIVE_FILE_ID.
I tryed your aia file but got an image file and when i change the name to .mp3 (my file) and open it not working look corrupted (Error: Media player error 1).
Also make crash the UI of my Android phone.
Hello WatermelonIce basicaly if i hundestand on your first answer is you recommand to use direct link, if so it’s what i alredy use.
Ok my bad i mean https://drive.google.com/uc?export=download&id=FILE_ID
In the aia file it’s olready set to the default file name wich is an image, whatever you change it again or not i receive an image file diferent to the hosted file. Anyway the size is wrong and when rename it it’s not working.
After the file downloaded the phone freeze and got dialog message some thing like “Your Ui stop working” i do not what a hell is mean but i already uninstall it.
Anyway i move on and use another service, Mediafire which is much faster in my case.
i did not use zipped file because of the limitation of google (no scan big file == no direct link).
I’m able to use a direct link on big file with Mediafire and allow multiple request so problem resolved.
Thanks All
Edit:
Finaly with Mediafire the direct download link will expire and regenere another one.