Web Component uses `My Documents` in path to save generated file names

Probably been reported before, but this should be an easy one to fix?

If downloading a file with the web component, Appinventor generates a filename, or uses the one you supply and saves it to, for example:

storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/My Documents/Downloads/appinventor_1787137932000.jpg

Note the space between My and Documents which causes any file read to fail.

Please remove the space from the file path generation.

Of interest, this display the image:

Edit - after further investigation i can copy a file from that directory but cannot move it.

No issue to display a downloaded image or the read a downloaded text file:

Agreed, just not possible to use Move. One has to Copy then Delete.

Works also fine:

1 Like

With which blocks does it fail?

File component Move block, if retaining App filescope for to and from (Move from My Documents to files for example.

I have absolutely no problem with that either.

I think you should change the topic from Bugs category.

Possibly a timing issue in my blocks code when I tried it, although Copy worked instead...

Yes, I would go so far as to say that everything works. :wink: :joy: