Code to accompany this post: https://finnian.io/blog/uploading-files-to-s3-react-native-ruby-on-rails/
Also thanks to @f-g-p for contributing some edits and the axios + expo example code below.
FROM python:2.7 | |
RUN apt-get update -qy && apt-get install -qy libmp3lame-dev libopenjpeg-dev pkg-config yasm libav-tools libspeex-dev libtheora-dev libvorbis-dev libx264-dev | |
WORKDIR /root | |
RUN wget http://ffmpeg.org/releases/ffmpeg-3.4.tar.bz2 | |
RUN tar xvjf ffmpeg-3.4.tar.bz2 | |
WORKDIR /root/ffmpeg-3.4 |
Code to accompany this post: https://finnian.io/blog/uploading-files-to-s3-react-native-ruby-on-rails/
Also thanks to @f-g-p for contributing some edits and the axios + expo example code below.
This gist shows you how to configure a Google Cloud Storage bucket CORS for use with Rails' ActiveStorage (or any other direct-upload mechanism).
origin
parameter)$ gsutil cors set ./cors-json-file.json gs://<bucket-name>