WiFi transfer plugin can't access whole folders

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
juanii
Junior Member
Junior Member
Posts: 3
Joined: 2024-01-02, 23:44 UTC

WiFi transfer plugin can't access whole folders

Post 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!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: WiFi transfer plugin can't access whole folders

Post 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.
Author of Total Commander
https://www.ghisler.com
juanii
Junior Member
Junior Member
Posts: 3
Joined: 2024-01-02, 23:44 UTC

Re: WiFi transfer plugin can't access whole folders

Post 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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: WiFi transfer plugin can't access whole folders

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: WiFi transfer plugin can't access whole folders

Post 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
Author of Total Commander
https://www.ghisler.com
juanii
Junior Member
Junior Member
Posts: 3
Joined: 2024-01-02, 23:44 UTC

Re: WiFi transfer plugin can't access whole folders

Post by *juanii »

OMG that was fast, you're awesome. Just installed the update and can confirm it worked in my setup.

Thank you again.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: WiFi transfer plugin can't access whole folders

Post 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).
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: WiFi transfer plugin can't access whole folders

Post by *ghisler(Author) »

Thanks, I put it in the wrong folder by mistake.
Author of Total Commander
https://www.ghisler.com
Post Reply