Page 1 of 1

WiFi transfer plugin can't access whole folders

Posted: 2024-01-03, 00:21 UTC
by juanii
Hi,

I'm having trouble using the WiFi transfer plugin to share whole folders in Android 13. It works fine if I share some individual files, and sharing whole folders also work fine in the same environment when using a phone running Androind 8. I searched for similar reports and only could find a couple of them (viewtopic.php?p=394958#p394958, https://ghisler.ch/board/viewtopic.php?p=389276#p389276) but the steps proposed in them won't fix my issue.

To reproduce the issue:
Long-press a folder in Total Commander (storage/emulated/0/DCIM/Camera in my case) to open the context menu,
Select either the "Send to" or "Send to */*" option,
Choose "Send via WiFi (Total Commander)" in the apps list,
The web server is properly created and can be accessed from a computer connected to the same network but,
Trying to use any of the links to download as a ZIP archive produces an HTTP 404 status code with message "No Files To Send!"
Trying to navigate inside the selected folder produces the same status code with message "Not found".

In rare cases, after (unsuccessfully) trying to share a whole folder, stopping the server and then sharing a few individual files from the same folder, the web server would show both the folder and the individual files (!). I can then navigate inside the folder and see the *full* list of files, but using the links to download as ZIP will still produce the 404 error with "No Files To Send!" message. Also, trying to download individual files from the list only succeeds for the actual files selected to be shared.

I can see the WiFi plugin does not have the permission to access the phone file system, but I can't find a way to manually grant that access (there are countless tutorials to do it, but the steps shown in them are not reproducible in Android 13).

Any tips on this will be greatly appreciated. Thanks in advance!

Re: WiFi transfer plugin can't access whole folders

Posted: 2024-01-04, 10:43 UTC
by ghisler(Author)
This is a rights problem. To fix it, either install the beta version of Total Commander, or share at least one folder in the following way:
1. Select the folder(s)
2. Press the copy button (second from the left in the lower toolbar)
3. Press "Via WiFi".

This does some extra permission sharing with the WiFi plugin, because on Android 13 the WiFi plugin no longer has the right to access the file system directly.

Re: WiFi transfer plugin can't access whole folders

Posted: 2024-01-04, 12:54 UTC
by juanii
Thanks so much for your answer.

I tried both suggestions. I still get the "No Files To Send!" error if I try to download as ZIP archive, but I can successfully navigate into the folder and download the files in it one by one. Combining that with a scraper to automate the individual files download works around the issue for me. Hope the ZIP download can be eventually fixed since it's very useful.

Thanks again for your help and for this piece of amazing software.

Regards

Re: WiFi transfer plugin can't access whole folders

Posted: 2024-01-04, 14:50 UTC
by ghisler(Author)
Oh, I didn't notice that the ZIP download was broken - I can confirm that and will try to find the reason.

Re: WiFi transfer plugin can't access whole folders

Posted: 2024-01-04, 16:19 UTC
by ghisler(Author)
Here is a pre-release version which should fix the ZIP download problem. Please try it:
https://www.totalcommander.ch/android/tcandroidwifi43b1.apk

Re: WiFi transfer plugin can't access whole folders

Posted: 2024-01-04, 17:03 UTC
by juanii
OMG that was fast, you're awesome. Just installed the update and can confirm it worked in my setup.

Thank you again.

Re: WiFi transfer plugin can't access whole folders

Posted: 2024-01-05, 09:07 UTC
by ghisler(Author)
Thanks for the quick test and feedback! I have now submitted a new version to the Play Store (no new changes except for the copyright year changed to 2024 and some updated translations).

Re: WiFi transfer plugin can't access whole folders

Posted: 2024-01-08, 20:08 UTC
by lneam

Re: WiFi transfer plugin can't access whole folders

Posted: 2024-01-11, 08:28 UTC
by ghisler(Author)
Thanks, I put it in the wrong folder by mistake.