<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://macrodroidforum.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Trigger%3A_File_Shared_to_MacroDroid</id>
	<title>Trigger: File Shared to MacroDroid - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://macrodroidforum.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Trigger%3A_File_Shared_to_MacroDroid"/>
	<link rel="alternate" type="text/html" href="https://macrodroidforum.com/wiki/index.php?title=Trigger:_File_Shared_to_MacroDroid&amp;action=history"/>
	<updated>2026-05-13T23:08:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://macrodroidforum.com/wiki/index.php?title=Trigger:_File_Shared_to_MacroDroid&amp;diff=3065&amp;oldid=prev</id>
		<title>MacroDroidDev: Created page with &quot;&lt;pre class=&quot;header-style&quot;&gt;This trigger fires when you share a file from another app and select MacroDroid as the target. You can optionally save the shared file to a new locat...&quot;</title>
		<link rel="alternate" type="text/html" href="https://macrodroidforum.com/wiki/index.php?title=Trigger:_File_Shared_to_MacroDroid&amp;diff=3065&amp;oldid=prev"/>
		<updated>2026-01-09T09:57:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre class=&amp;quot;header-style&amp;quot;&amp;gt;This trigger fires when you share a file from another app and select MacroDroid as the target. You can optionally save the shared file to a new locat...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre class=&amp;quot;header-style&amp;quot;&amp;gt;This trigger fires when you share a file from another app and select MacroDroid as the target. You can optionally save the shared file to a new location.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''' Options '''&lt;br /&gt;
&lt;br /&gt;
* '''File Name Pattern''' - Match file names using exact match or contains&lt;br /&gt;
* '''Enable Regex''' - Use regular expressions for advanced matching&lt;br /&gt;
* '''Ignore Case''' - Case-insensitive matching (default on)&lt;br /&gt;
* '''Save to New Location''' - Save the shared file to a chosen folder&lt;br /&gt;
* '''Storage Access''' - Use the system file picker (SAF) or All Files Access&lt;br /&gt;
* '''New Filename''' - Optional rename when saving (blank keeps the original name)&lt;br /&gt;
&lt;br /&gt;
''' Magic Text '''&lt;br /&gt;
&lt;br /&gt;
When this trigger fires, the following values are available via magic text:&lt;br /&gt;
&lt;br /&gt;
* {file_shared_name}&lt;br /&gt;
* {file_shared_path}&lt;br /&gt;
* {file_shared_directory}&lt;br /&gt;
* {file_shared_uri}&lt;br /&gt;
* {file_shared_mime_type}&lt;br /&gt;
&lt;br /&gt;
''' Examples '''&lt;br /&gt;
&lt;br /&gt;
''Example 1: Auto-save shared PDFs''&lt;br /&gt;
  &amp;lt;pre class=&amp;quot;trigger-style&amp;quot;&amp;gt;Triggers&lt;br /&gt;
&lt;br /&gt;
File Shared to MacroDroid (Contains: .pdf, Save to new location)&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &amp;lt;pre class=&amp;quot;action-style&amp;quot;&amp;gt;Actions&lt;br /&gt;
&lt;br /&gt;
Display Notification: &amp;quot;Saved {file_shared_name} to Documents&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''Example 2: Open and log any shared file''&lt;br /&gt;
  &amp;lt;pre class=&amp;quot;trigger-style&amp;quot;&amp;gt;Triggers&lt;br /&gt;
&lt;br /&gt;
File Shared to MacroDroid (Any file)&amp;lt;/pre&amp;gt;&lt;br /&gt;
  &amp;lt;pre class=&amp;quot;action-style&amp;quot;&amp;gt;Actions&lt;br /&gt;
&lt;br /&gt;
Open File: {file_shared_path}&lt;br /&gt;
Write to File - Append &amp;quot;Shared {file_shared_name}&amp;quot; to shared_files.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''' See Also '''&lt;br /&gt;
&lt;br /&gt;
* [[Trigger: Text Shared to MacroDroid|Text Shared to MacroDroid]]&lt;br /&gt;
* [[Action: File Operation|File Operation]]&lt;br /&gt;
* [[Action: Open File|Open File]]&lt;/div&gt;</summary>
		<author><name>MacroDroidDev</name></author>
	</entry>
</feed>