<?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: download blob using dropbox Saver in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-blob-using-dropbox-Saver/m-p/366588#M20770</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1210369"&gt;@blurymind&lt;/a&gt;&amp;nbsp;No, &lt;A href="https://www.dropbox.com/developers/saver" target="_self"&gt;the&amp;nbsp;Dropbox Saver&lt;/A&gt; still doesn't support saving blobs, or some other local alternative.&amp;nbsp;I'll add your vote to the feature request, but I can't promise if or when that might be implemented.&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;Dropbox Saver only supports saving from Internet-accessible&amp;nbsp;URLs. If you want to use the Saver to save a text file, you'll need to supply the data via an Internet-accessible URL.&lt;/P&gt;
&lt;P&gt;Alternatively, you can use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_self"&gt;the&amp;nbsp;Dropbox API&lt;/A&gt;, e.g., via &lt;A href="https://github.com/dropbox/dropbox-sdk-js" target="_self"&gt;the official&amp;nbsp;Dropbox JavaScript SDK&lt;/A&gt;, to upload directly to&amp;nbsp;Dropbox from the browser, but that would be more work and would require you to have the user explicitly authorize the app via the OAuth app authorization flow.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2019 15:17:26 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-09-23T15:17:26Z</dc:date>
    <item>
      <title>download blob using dropbox Saver</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-blob-using-dropbox-Saver/m-p/223137#M11977</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to use the dropbox Saver (&lt;A href="https://www.dropbox.com/developers/saver" target="_blank"&gt;https://www.dropbox.com/developers/saver&lt;/A&gt;) to download a json blob from my desktop (ubuntu).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This leads to an error: &amp;nbsp;Url "blob:http://localhost:5000/f58ddb0b-48ed-46ab-87b3-f45a1ee8a7df" uses unsupported scheme&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to download a blob using Saver ? If so, any ideas what I am doing wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code i used is as follows: with url =&amp;nbsp;&lt;SPAN&gt;blob:http://localhost:5000/f58ddb0b-48ed-46ab-87b3-f45a1ee8a7df", and filename = "yourmap.json"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joost&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function create_dropbox_save_button(url, mapname){
    var options = {  
        success: function () {
            // Indicate to the user that the files have been saved.
            alert("Success! Files saved to your Dropbox.");
        },
        progress: function (progress) {console.log(progress)},
        cancel: function () {},
        error: function (errorMessage) {console.log(errorMessage)}
    };
    var button = Dropbox.createSaveButton(url, mapname, options);
    document.getElementById("dl_dropbox").appendChild(button);
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:22:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-blob-using-dropbox-Saver/m-p/223137#M11977</guid>
      <dc:creator>joost2076</dc:creator>
      <dc:date>2019-05-29T09:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: download blob using dropbox Saver</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-blob-using-dropbox-Saver/m-p/223183#M11980</link>
      <description>The Dropbox Saver doesn't support blobs, local files, or data URIs unfortunately, but I'll pass this along as a feature request.</description>
      <pubDate>Sat, 27 May 2017 21:35:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-blob-using-dropbox-Saver/m-p/223183#M11980</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-27T21:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: download blob using dropbox Saver</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-blob-using-dropbox-Saver/m-p/366369#M20764</link>
      <description>&lt;P&gt;Hi, I need this too in order toimplement saving to db from&amp;nbsp;&lt;A href="https://yarnspinnertool.github.io/YarnEditor/" target="_blank"&gt;https://yarnspinnertool.github.io/YarnEditor/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there an alternative approach to blobs? I want to write a simple string from my webapp to a dropbox folder - as a text file. Is that possible or not? If so how and why is your documentation lacking a simple example?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2019 10:50:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-blob-using-dropbox-Saver/m-p/366369#M20764</guid>
      <dc:creator>blurymind</dc:creator>
      <dc:date>2019-09-22T10:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: download blob using dropbox Saver</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-blob-using-dropbox-Saver/m-p/366588#M20770</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1210369"&gt;@blurymind&lt;/a&gt;&amp;nbsp;No, &lt;A href="https://www.dropbox.com/developers/saver" target="_self"&gt;the&amp;nbsp;Dropbox Saver&lt;/A&gt; still doesn't support saving blobs, or some other local alternative.&amp;nbsp;I'll add your vote to the feature request, but I can't promise if or when that might be implemented.&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;Dropbox Saver only supports saving from Internet-accessible&amp;nbsp;URLs. If you want to use the Saver to save a text file, you'll need to supply the data via an Internet-accessible URL.&lt;/P&gt;
&lt;P&gt;Alternatively, you can use &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_self"&gt;the&amp;nbsp;Dropbox API&lt;/A&gt;, e.g., via &lt;A href="https://github.com/dropbox/dropbox-sdk-js" target="_self"&gt;the official&amp;nbsp;Dropbox JavaScript SDK&lt;/A&gt;, to upload directly to&amp;nbsp;Dropbox from the browser, but that would be more work and would require you to have the user explicitly authorize the app via the OAuth app authorization flow.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 15:17:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-blob-using-dropbox-Saver/m-p/366588#M20770</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-09-23T15:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: download blob using dropbox Saver</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-blob-using-dropbox-Saver/m-p/366682#M20775</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to achieve creating and saving a new text file by doing this and passing it as an url to the saver:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/YarnSpinnerTool/YarnEditor/blob/master/src/js/classes/utils.js#L278" target="_blank" rel="noopener"&gt;https://github.com/YarnSpinnerTool/YarnEditor/blob/master/src/js/classes/utils.js#L278&lt;/A&gt;&lt;/P&gt;&lt;P&gt;however there is a catch. Both the saver and the chooser only function when running from the web app hosted here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://yarnspinnertool.github.io/YarnEditor/" target="_blank" rel="noopener"&gt;https://yarnspinnertool.github.io/YarnEditor/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Perhaps more annoyingly, the saver can not overwrite files when asked to.&lt;/P&gt;&lt;P&gt;Dropbox denies them both access if running from a localhost server or a hosted file. This is why I disabled it for the electron version of yarnEditor.&lt;/P&gt;&lt;P&gt;Wish I could use one codebase that is simple and effective to achieve saving and loading - but the current&amp;nbsp; api doesn't seem to have an easy answer to thi&lt;SPAN&gt;s&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 21:51:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-blob-using-dropbox-Saver/m-p/366682#M20775</guid>
      <dc:creator>blurymind</dc:creator>
      <dc:date>2019-09-23T21:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: download blob using dropbox Saver</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-blob-using-dropbox-Saver/m-p/366763#M20777</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1210369"&gt;@blurymind&lt;/a&gt;&amp;nbsp;Thanks for sharing this! Please note though that &lt;A href="https://www.dropbox.com/developers/saver" target="_self"&gt;the Saver&lt;/A&gt; only officially supports&amp;nbsp;HTTP and HTTPS URIs, so while data URIs like this may happen to work, I don't&amp;nbsp;recommend relying on that. It may not work consistently, or may break without notice.&lt;/P&gt;
&lt;P&gt;Also, yes, the Chooser and Saver do need to run on a hosted page where they can verify the domain against the pre-registered Chooser/Saver domains for the app key being used.&lt;/P&gt;
&lt;P&gt;The Saver also doesn't currently support overwrite&amp;nbsp;or other write modes,&amp;nbsp;but I'll pass these along as feature request as well.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 10:52:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-blob-using-dropbox-Saver/m-p/366763#M20777</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-09-24T10:52:12Z</dc:date>
    </item>
  </channel>
</rss>

