<?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: Content-Disposition in dropbox in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340939#M558</link>
    <description>I want the user to download the file from dropbox by adding a parameter or http header to the link and get the file with the new name, not through another server or rename it locally. I want dropbox to download the file with new name that I will pass in content-disposition headers or other params. I really need this functionality &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@B0F70D28791EB05FA3EA0C3BDDF08EE3/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;BR /&gt;&lt;BR /&gt;Well, with in active storage, we never stores the files with their real name. We just name it with some unique number or id and we stores the real name in our database. So what we really want, we want a way to pass a the real name in some header or parameters and it will use this name for the file directly at dropbox for downloading it. And will not affect the file.</description>
    <pubDate>Tue, 23 Apr 2019 16:05:16 GMT</pubDate>
    <dc:creator>codingnightmare</dc:creator>
    <dc:date>2019-04-23T16:05:16Z</dc:date>
    <item>
      <title>Content-Disposition in dropbox</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340864#M556</link>
      <description>&lt;P&gt;Is there a way to rename a file while downloading from dropbox without changing the filename itself :&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;For example:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dropbox link :&amp;nbsp;&lt;/STRONG&gt;&lt;A href="https://www.dropbox.com/s/b06pn1n7w75ihyz/270px-July_Morning_Boby_Dimitrov.jpg?dl=1" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/b06pn1n7w75ihyz/270px-July_Morning_Boby_Dimitrov.jpg?dl=1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and get file dow0nloaded: &lt;STRONG&gt;morning.jpg&lt;/STRONG&gt; instead of &lt;STRONG&gt;270px-July_Morning_Boby_Dimitrov.jpg&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Content-Disposition header didn't work for me .&lt;/P&gt;&lt;P&gt;Any ideas how to do that ?&lt;/P&gt;&lt;P&gt;I recently developed a &lt;STRONG&gt;activestorage-dropbox gem&lt;/STRONG&gt; for rails that wraps the Dropbox Storage Service as an Active Storage service. I am hoping the&amp;nbsp;Content-Disposition functionality in dropbox as it's very much important for maintaining the robustness and quality of the functionality.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ashishprajapati/activestorage-dropbox" target="_blank" rel="noopener"&gt;https://github.com/ashishprajapati/activestorage-dropbox&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;BR /&gt;Ashish Prajapati&lt;BR /&gt;Rails Contributor&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:04:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340864#M556</guid>
      <dc:creator>codingnightmare</dc:creator>
      <dc:date>2019-05-29T09:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Disposition in dropbox</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340936#M557</link>
      <description>&lt;P&gt;The filename in Dropbox, and thereby in the shared link, is set when the file is uploaded. The vaue in the 'content-disposition' response header will also be based on that filename in Dropbox.&lt;/P&gt;
&lt;P&gt;It sounds like you want to change the filename for your resulting local copy of the file when downloading from a shared link, not the filename in&amp;nbsp;Dropbox itself.&lt;/P&gt;
&lt;P&gt;Since that affects the file being written locally, exactly how you do that would depend on the HTTPS client you're using to download and write the file locally.&lt;/P&gt;
&lt;P&gt;For example, using 'curl' like this would result in a file named "270px-July_Morning_Boby_Dimitrov.jpg?dl=1":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -L -O "https://www.dropbox.com/s/b06pn1n7w75ihyz/270px-July_Morning_Boby_Dimitrov.jpg?dl=1"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That option takes the filename from the URL.&lt;/P&gt;
&lt;P&gt;Whereas using 'curl' like this would result in a file named "270px-July_Morning_Boby_Dimitrov.jpg":&lt;/P&gt;
&lt;PRE&gt;curl -L -OJ "https://www.dropbox.com/s/b06pn1n7w75ihyz/270px-July_Morning_Boby_Dimitrov.jpg?dl=1"&lt;/PRE&gt;
&lt;P&gt;That option takes the filename from the header.&lt;/P&gt;
&lt;P&gt;And using 'curl' like this would result in a file named "morning.jpg":&lt;/P&gt;
&lt;PRE&gt;curl -L -o "morning.jpg" "https://www.dropbox.com/s/b06pn1n7w75ihyz/270px-July_Morning_Boby_Dimitrov.jpg?dl=1"&lt;/PRE&gt;
&lt;P&gt;That option takes the filename as specified on the command line.&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;recommend referring to the documentation for whatever client you're using for information on how to set the local filename.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 15:50:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340936#M557</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-04-23T15:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Disposition in dropbox</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340939#M558</link>
      <description>I want the user to download the file from dropbox by adding a parameter or http header to the link and get the file with the new name, not through another server or rename it locally. I want dropbox to download the file with new name that I will pass in content-disposition headers or other params. I really need this functionality &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@B0F70D28791EB05FA3EA0C3BDDF08EE3/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;BR /&gt;&lt;BR /&gt;Well, with in active storage, we never stores the files with their real name. We just name it with some unique number or id and we stores the real name in our database. So what we really want, we want a way to pass a the real name in some header or parameters and it will use this name for the file directly at dropbox for downloading it. And will not affect the file.</description>
      <pubDate>Tue, 23 Apr 2019 16:05:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340939#M558</guid>
      <dc:creator>codingnightmare</dc:creator>
      <dc:date>2019-04-23T16:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Disposition in dropbox</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340945#M559</link>
      <description>Greg, If you will check these links then you will realise that what I am exactly looking for:&lt;BR /&gt;&lt;BR /&gt;Similar think is possible at GCS:&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/21026132/google-cloud-storage-download-a-file-with-a-different-name" target="_blank"&gt;https://stackoverflow.com/questions/21026132/google-cloud-storage-download-a-file-with-a-different-name&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Similar thing is possible with S3:&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/2611432/amazon-s3-change-file-download-name/2612795#2612795" target="_blank"&gt;https://stackoverflow.com/questions/2611432/amazon-s3-change-file-download-name/2612795#2612795&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 23 Apr 2019 16:24:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340945#M559</guid>
      <dc:creator>codingnightmare</dc:creator>
      <dc:date>2019-04-23T16:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Disposition in dropbox</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340957#M560</link>
      <description>&lt;P&gt;I see, thanks for clarifying.&amp;nbsp;Dropbox unfortunately doesn't offer an option for setting the download name like that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 17:20:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340957#M560</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-04-23T17:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Disposition in dropbox</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340978#M561</link>
      <description>Oh, I had thought that DROPBOX allows passing custom-disposition attributes i.e name with in headers for downloading the file with any name required. It was required for my one of the important project that was the part of Ruby On Rails ActiveStorage module. It will create big problem for us because we don’t want to save real file name there at storage providers, we want to keep the real name in our database. We are just using some random unique number for the file names.&lt;BR /&gt;&lt;BR /&gt;At the moment, we are using AWS S3, GCS and AZURE storage providers for storing and delivery files with Rails ActiveStorage.&lt;BR /&gt;We thought of using Dropbox too but it’s one the key feature for the security of using content-disposition headers to download file with any name not supported by dropbox.&lt;BR /&gt;&lt;BR /&gt;Is there any chances to develop it ? I can help as well. It’s one of the important key feature that will be widely be useful for bulk of developer whoever using dropbox and want to use custom-disposition headers. And will also help Rails Community as we want to use dropbox as a ActiveStorage storage provider &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; I am happy to discuss more.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ashish Prajapati&lt;BR /&gt;CEO, Clecotech | Rails Contributor</description>
      <pubDate>Tue, 23 Apr 2019 20:02:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340978#M561</guid>
      <dc:creator>codingnightmare</dc:creator>
      <dc:date>2019-04-23T20:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Disposition in dropbox</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340980#M562</link>
      <description>&lt;P&gt;I'll pass this along as a feature request. I can't promise if or when that might be implemented though, so I&amp;nbsp;recommend trying to accomplish this locally instead.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 20:13:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340980#M562</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-04-23T20:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Disposition in dropbox</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340981#M563</link>
      <description>Ok, I will ask the same with Rails Core Team and will discuss that, it’s better to store the files with real name directly at dropbox and will create the folders with unique number for identifying the path etc. i.e 356663/ashish.jpg in place of 35663 only &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;BR /&gt;&lt;BR /&gt;I will release the new version of ‘activestorage-dropbox gem’ with this small improvement so at least end users can see the real name after downloading the file.&lt;BR /&gt;&lt;BR /&gt;I will also wait for you so if there will be any news about implementing the Content-disposition support by Dropbox then it will really help me and other bulk of developers those need the same. I checked the stackeoverflow and lots of developer asking for the same kind of thing with Dropbox&lt;BR /&gt;&lt;BR /&gt;Thanks for your time Greg &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;BR /&gt;Have a nice day &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;BR /&gt;&lt;BR /&gt;Ashish P.</description>
      <pubDate>Tue, 23 Apr 2019 20:20:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/340981#M563</guid>
      <dc:creator>codingnightmare</dc:creator>
      <dc:date>2019-04-23T20:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Disposition in dropbox</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/598426#M2615</link>
      <description>&lt;P&gt;Do you know when this feature will be available?&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 20:36:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/598426#M2615</guid>
      <dc:creator>spotloader</dc:creator>
      <dc:date>2022-05-20T20:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Content-Disposition in dropbox</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/598434#M2616</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1543276"&gt;@spotloader&lt;/a&gt; This feature request was filed with the team, but I don't see any plans to implement it currently.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 21:02:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Content-Disposition-in-dropbox/m-p/598434#M2616</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-05-20T21:02:24Z</dc:date>
    </item>
  </channel>
</rss>

