Replace one item of .csv file

sorry to say, but the PathToAssets method is designed to be used only for the webviewer component...
see also the documentation App Inventor Extensions: Tools | Pura Vida Apps

Note: this method will work only for the webviewer component. It does not make sense to use it for other components!

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

AIA tested, nothing wrong there, all files downloaded correctly.
You might want to check the UTF-8 encoding of the files.

image

image

Hi TimAI2,

You are correct. There is nothing wrong in this .aia because it has just 4 .csv files.
But the one I have has 1000 file of .csv :slight_smile:

But they are all in google drive, so you just have a list of 1000 in your links.csv file.And you download one by one ? - you could break up the list to a more manageable list of lists ?

If you need to download 1000 all in one go using the file by file method, I suggest you do it in batches of 50 - 100, depending on their size, or just download a file as needed ?

depending on the size, you also could create a zip file and download only that zip file, then unzip it using the zip extension

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

Hello Taifun,

Your suggestion is the best idea to create a zip file and download only that zip file then unzip it using the zip extension. But I don’t know how to do it because I don’t have an example with more details. And .aia in the link https://puravidaapps.com/zip.php has different example. I will try to create a small example. Thank you Taifun and TimAI2

The zip file and unzip the file is pretty easy but I am confusing how to recreate the path in order to download the zip file into it then unzip that file in the same path /download/box :slight_smile:

Try this
(for example: I put csv.zip (1.csv, 2.csv, 3.csv) into the assets, you have to download it first from https://docs.google.com/uc?... to: /storage/emulated/0/Download/Box/csv.zip):

Hi Anke,
I have done the blocks but I think I am still confuse. I need to download every single .csv file when the user select any item from ListPicker individually and not all files at one time
.
Please have a look to my project.

Thank you so much for helping me.

You didn't upload csv.zip file to the assets.
So the folder: /storage/emulated/0/Download/Box/csv/ is not created

Try this one: Download_zip2.aia (244.5 KB)

grafik

… download my aia, build APK, install it, open the app (nothing else) and check if inside this folder
/storage/emulated/0/Download/Box/csv/
these 3 files exist:

Thank you so much Anke for the great job.
I will test it and let you know how it works.
Thank you :slight_smile:

Why? Maybe I didn't understand the purpose of your app ...

I have tested with your csv.zip it’s fine.
But when I have replaced the names of csv into Arabic Language then zip it and upload it into Media asset, it change the names of csv file after unzip it.

sorry, I don't understand what you mean ...
post your aia

There is message say:
Sorry you cannot post a link to that host.

I have update the above link with new aia
Please have a look:

Hi all,
Is there any way to download .zip file from google drive and how can I download it please?

Thank you.

Hi Osama,
I moved your new thread into your old one… please continue in your existing thread… thank you…
also please try something yourself and show your relevant blocks… you already know how the community works…
Taifun