(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
<html> | |
<head> | |
<title>S3 POST Form</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<script> | |
var bucketName = 'MY_BUCKET_NAME'; | |
var AWSKeyId = 'MY_AWS_KEY_ID'; | |
var policy = 'MY_POLICY'; | |
var signature = 'MY_SIGNATURE'; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
This is a sample script for selecting files in Google Drive using HTML select box for Google Apps Script.
Feature of this sample.
/** | |
* I recently needed to upload a file from the phone's filesystem to S3 using temporary credentials | |
* (i.e. access key, secret key and session token) issued by an API for a React Native application, | |
* without the overhead of Base64 encoding the file and passing it over the bridge (as it could be | |
* several MB big), and wanted to avoid writing native code to do this. | |
* | |
* None of the S3 libraries online worked with the temporary credentials, but I figured out a | |
* solution using the official AWS SDK (which is good, as it supports all the relevant authentication | |
* out of the box) and the react-native-fetch-blob module, which allows you to upload directly from the | |
* filesystem with the correct Content-type header (as far as I can tell, React Native's fetch only |