BUTTON: Send multiple files to WhatsApp

Support for Android version of Total Commander

Moderators: sheep, Hacker, Stefan2, white

Post Reply
endigo
Junior Member
Junior Member
Posts: 2
Joined: 2020-05-13, 19:24 UTC

BUTTON: Send multiple files to WhatsApp

Post by *endigo »

Hi,
I want to create a BUTTON to send MULTIPLE files to WhatsApp.

I use following button settings:
Function type: Send to app
Command: WhatsApp:com.whatsapp:.ContactPicker
(I chose WhatsApp from associated drop-down list)
Parameters: stream:%P%S

This doesn't work, WhatsApp says something like: "File format (file type) not supported".

What is the correct button-settings' syntax?
...
Remarks:
  • stream:%P%N works, but sends only the first selected file, as intended
  • Sending multiple files via context-menu using 'Send to app' command works fine.
Can you help me? :) Thanks
...
TC 3.0, Android 7.1.2
AndiAndi
Junior Member
Junior Member
Posts: 2
Joined: 2020-05-14, 04:27 UTC

Re: BUTTON: Send multiple files to WhatsApp

Post by *AndiAndi »

I need a solution on this one as well
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 39974
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: BUTTON: Send multiple files to WhatsApp

Post by *ghisler(Author) »

I will have to check that in the debugger. In principle, the two should use the same method. Maybe there is a difference in the sent MIME type (file type).
Author of Total Commander
http://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 39974
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: BUTTON: Send multiple files to WhatsApp

Post by *ghisler(Author) »

Sorry, the reason is that you used the wrong parameter. Instead of
stream:%P%S
just use
list:
with nothing behind the colon. You could specify the extra name, but leaving out the name will automaticall use Intent.EXTRA_STREAM.

%P%S just inserts the path names separated by spaces, e.g.
/storage/emulated/0/file1.txt /storage/emulated/0/file2.txt

That's not what apps expect when receiving the "Send to multi" data.
Author of Total Commander
http://www.ghisler.com
AndiAndi
Junior Member
Junior Member
Posts: 2
Joined: 2020-05-14, 04:27 UTC

Re: BUTTON: Send multiple files to WhatsApp

Post by *AndiAndi »

That works perfect

Many thanks
endigo
Junior Member
Junior Member
Posts: 2
Joined: 2020-05-13, 19:24 UTC

Re: BUTTON: Send multiple files to WhatsApp

Post by *endigo »

Thanks! Now it works.

By the way, GREAT APP!
johnamaro
New Member
New Member
Posts: 1
Joined: 2020-09-12, 11:17 UTC

Re: BUTTON: Send multiple files to WhatsApp

Post by *johnamaro »

ghisler(Author) wrote:
2020-05-15, 09:34 UTC
Sorry, the reason is that you used the wrong parameter. Instead of
stream:%P%S
just use
list:
with nothing behind the colon. You could specify the extra name, but leaving out the name will automaticall use Intent.EXTRA_STREAM.

%P%S just inserts the path names separated by spaces, e.g.
/storage/emulated/0/file1.txt /storage/emulated/0/file2.txt

That's not what apps expect when receiving the "Send to multi" data.
I have try this method on Whatsapp third-party app which name is WhatsApp - plus but this doesn't work on this mod app can you please assist me about this Whatsapp - plus and if you want to anything about this you read this https // gbapps - net




Edit by moderator:
This user posts all over the net advertisement for this app, hidden behind bug reports.
Link disarmed, post locked.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 39974
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: BUTTON: Send multiple files to WhatsApp

Post by *ghisler(Author) »

Try sending content: URLs instead of file: URLs. The parameter would then be:
list:content:

If this doesn't work either and you are on Android 10 or newer, try forcing file: URLs:
list:file:
Author of Total Commander
http://www.ghisler.com
scottwlff
New Member
New Member
Posts: 1
Joined: 2020-10-19, 07:50 UTC

Re: BUTTON: Send multiple files to WhatsApp

Post by *scottwlff »

endigo wrote:
2020-05-13, 20:10 UTC
Hi,
I want to create a BUTTON to send MULTIPLE files to WhatsApp.https://gb-SPAM-apps.net/gb-SPAM-whatsapp-apk/


I use following button settings:
Function type: Send to app
Command: WhatsApp:com.whatsapp:.ContactPicker
(I chose WhatsApp from associated drop-down list)
Parameters: stream:%P%S

This doesn't work, WhatsApp says something like: "File format (file type) not supported".

What is the correct button-settings' syntax?
...
Remarks:
  • stream:%P%N works, but sends only the first selected file, as intended
  • Sending multiple files via context-menu using 'Send to app' command works fine.
Can you help me? :) Thanks
...
TC 3.0, Android 7.1.2
Have you tried sharing multiple files via broadcast? If not, try it out.

How to use Broadcast Lists in WhatsApp

Read more at:
https://www <dot> gadget # snow <dot> com /how-to/how-to-message-multiple-whatsapp-users-without-creating-group/
articleshow/64442697.cms?utm_source=contentofinterest&utm_medium=text&utm_campaign=cppst




- - - Edit by moderator:

Quoted text from above , but with added hidden URL in [size =4] (do you spot it?) >> User banned

Please help us and report such posts (see the [!] button) if you find them on browsing the forum, thanks.

Please note:
This post may be delete soon... but for the time being, kept here for your information.

[MTAG]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 39974
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: BUTTON: Send multiple files to WhatsApp

Post by *ghisler(Author) »

Try using:
list:
and alternatively
list:content:
without any parameters behind them.
Author of Total Commander
http://www.ghisler.com
Post Reply