title: Sharing remote file as a direct message in Slack
body: <p>I'm trying to share file in slack using the <a href="https://api.slack.com/methods/files.remote.share" rel="nofollow noreferrer">files.remote.share</a> method. It's successfully sent to a public channel but when I try to send the same file as a direct message putting slack user's id in a list of channels I receive the following error:</p>
  <pre><code>{&quot;ok&quot;:false,&quot;error&quot;:&quot;channel_not_found&quot;,&quot;channel&quot;:&quot;Uxxxxxxxx&quot;}
  </code></pre>
  <p>I haven't found any limitation in the docs about sharing files as a direct message.</p>
  <p>Request is</p>
  <pre><code>curl &quot;https://slack.com/api/files.remote.share?channels=Uxxxxxxxx&amp;external_id=8e1e0bd1-ad56-437d-84fe-83722789cc85&quot; \
       -H 'Authorization: Bearer xoxb-xxxxxxxx' \
       -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8'
  </code></pre>