Remove all media_files etc:
TRUNCATE TABLE media_files CASCADE;
To build run ./bin/clj-uberjar.
Run the uberjar:
java -cp madek-media-service.jar clojure.main -m madek.media-service.main
To build run ./bin/clj-uberjar-aot.
Run the uberjar:
java -jar madek-media-service.jar
clj -m madek.media-service.main
FactoryGirl.create :research_video_media_entry, responsible_user_id: '653bf621-45c8-4a23-a15e-b29036aa9b10'
TLDR: pre-signed URLs seems likely to work for AWS and other implementations
https://docs.min.io/docs/upload-files-from-browser-using-pre-signed-urls.html
TLDR: seems to work, but not in every case, falls back to full download
- Does ExitTool stop processing a file (or stream) when it reaches the required data? i.e. if the metadata is in the header (or the first bit of the file) will it find it without having to read the whole file? Yes, if possible. See the -fast option.
https://exiftool.org/forum/index.php?topic=7579.0
https://exiftool.org/exiftool_pod.html#PIPING-EXAMPLES
curl -s http://a.domain.com/bigfile.jpg | exiftool -fast - Extract information from an image over the internet using the cURL utility. The -fast option prevents exiftool from scanning for trailer information, so only the meta information header is transferred.