<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: dbx.Files.UploadAsync Does not work returning Value should match pattern '\A(?:(/(.|[\r\n])*)|(n in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-Files-UploadAsync-Does-not-work-returning-Value-should-match/m-p/303377#M18334</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Definitely, you have forgot to put a slash (/) at the begining of folder in UploadAsync method. it should be like this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; var updated = await dbx.Files.UploadAsync("/"+folder + "/" + file, WriteMode.Overwrite.Instance, body: mem);
            &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Oct 2018 16:43:12 GMT</pubDate>
    <dc:creator>nikseresht</dc:creator>
    <dc:date>2018-10-16T16:43:12Z</dc:date>
    <item>
      <title>dbx.Files.UploadAsync Does not work returning Value should match pattern '\A(?:(/(.|[\r\n])*)|(ns:[0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-Files-UploadAsync-Does-not-work-returning-Value-should-match/m-p/205334#M9906</link>
      <description>&lt;P&gt;i have worked on this for quite a while:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;async Task Upload()
{
    using (DropboxClient dbx = new DropboxClient("mytoken"))
    {
        string folder = Directory.GetCurrentDirectory();
        string file = @"\temp.dat";
        using (var mem = new MemoryStream(Encoding.UTF8.GetBytes("NotIP.dat")))
        {
            var updated = await dbx.Files.UploadAsync(folder + @"/" + file, WriteMode.Overwrite.Instance, body: mem);
            label1.Text = (folder + file + updated.Rev);
        }
    }

}
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i start it with:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var task = Upload();
task.Wait();&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it returns:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Inner Exception 1:
ArgumentOutOfRangeException: Value should match pattern '\A(?:(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?))\z'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help!&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:26:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-Files-UploadAsync-Does-not-work-returning-Value-should-match/m-p/205334#M9906</guid>
      <dc:creator>BokatianTi</dc:creator>
      <dc:date>2019-05-29T09:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: dbx.Files.UploadAsync Does not work returning Value should match pattern '\A(?:(/(.|[\r\n])*)|(n</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-Files-UploadAsync-Does-not-work-returning-Value-should-match/m-p/205349#M9908</link>
      <description>&lt;P&gt;The path you supply to UploadAsync should be the remote path in&amp;nbsp;Dropbox where you want to put the uplaoded file content. It needs to match the regex pattern given in order to be a valid path for Dropbox.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The path you're currently supplying probably looks something like "C:\FolderName/\temp.dat". If you want to upload to a file in Dropbox named "file.dat" in a folder with name "FolderName", for example, you should supply a path like "/FolderName/file.dat".&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 20:28:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-Files-UploadAsync-Does-not-work-returning-Value-should-match/m-p/205349#M9908</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-04T20:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: dbx.Files.UploadAsync Does not work returning Value should match pattern '\A(?:(/(.|[\r\n])*)|(n</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-Files-UploadAsync-Does-not-work-returning-Value-should-match/m-p/209948#M10447</link>
      <description>&lt;P&gt;use following code for upload request&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;byte[] byteArray = System.IO.File.ReadAllBytes(@"C:\Srusti\codingstandards.docx");&lt;BR /&gt;System.IO.MemoryStream stream1 = new System.IO.MemoryStream(byteArray);&lt;BR /&gt;var updated = await dbx.Files.UploadAsync( folder + "/" + file,WriteMode.Overwrite.Instance, body: stream1);  &lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Mar 2017 09:11:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-Files-UploadAsync-Does-not-work-returning-Value-should-match/m-p/209948#M10447</guid>
      <dc:creator>SrustiThakkar</dc:creator>
      <dc:date>2017-03-06T09:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: dbx.Files.UploadAsync Does not work returning Value should match pattern '\A(?:(/(.|[\r\n])*)|(n</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-Files-UploadAsync-Does-not-work-returning-Value-should-match/m-p/303377#M18334</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Definitely, you have forgot to put a slash (/) at the begining of folder in UploadAsync method. it should be like this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; var updated = await dbx.Files.UploadAsync("/"+folder + "/" + file, WriteMode.Overwrite.Instance, body: mem);
            &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 16:43:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/dbx-Files-UploadAsync-Does-not-work-returning-Value-should-match/m-p/303377#M18334</guid>
      <dc:creator>nikseresht</dc:creator>
      <dc:date>2018-10-16T16:43:12Z</dc:date>
    </item>
  </channel>
</rss>

