<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Files on Finnian Anderson</title>
    <link>https://3d93d93c.finnian-io.pages.dev/tags/files/</link>
    <description>Recent content in Files on Finnian Anderson</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 18 Sep 2020 23:34:02 +0000</lastBuildDate>
    <atom:link href="https://3d93d93c.finnian-io.pages.dev/tags/files/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Uploading files to S3 with React Native and Ruby on Rails</title>
      <link>https://3d93d93c.finnian-io.pages.dev/blog/uploading-files-to-s3-react-native-ruby-on-rails/</link>
      <pubDate>Fri, 18 Sep 2020 23:34:02 +0000</pubDate>
      <guid>https://3d93d93c.finnian-io.pages.dev/blog/uploading-files-to-s3-react-native-ruby-on-rails/</guid>
      <description>&lt;p&gt;I&#39;ve recently been working on a top secret React Native project, powered by a Rails backend deployed to Heroku.&lt;/p&gt;&#xA;&lt;p&gt;The app allows users to upload images/videos to our backend as part of one of the flows. Originally, I was using a &lt;code&gt;multipart/form-data&lt;/code&gt; request to upload the data + files directly to our backend, which would then upload them to S3.&lt;/p&gt;&#xA;&lt;p&gt;This approach has a couple of main disadvantages:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://devcenter.heroku.com/articles/request-timeout&#34;&gt;Heroku timeouts&lt;/a&gt; will abort the request if it takes longer than 30s (can happen if uploading lots of, or big files)&lt;/li&gt;&#xA;&lt;li&gt;it increases the load on your backend&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This post will be specifically talking about AWS S3 but &lt;a href=&#34;https://cloud.google.com/storage/docs/access-control/signed-urls&#34;&gt;GCP has a Signed URLs&lt;/a&gt; feature too.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
