Had to swap to minio to let it act as a cdn. Working file uploads.

This commit is contained in:
2026-03-31 13:12:11 -04:00
parent db57ac843b
commit 028d83b9cc
6 changed files with 17 additions and 12 deletions

View File

@@ -13,7 +13,7 @@ defmodule Mixer.Posts.MediaUploader do
def storage_dir(_version, {_file, scope}), do: "uploads/media/#{scope.id}"
def filename(_version, {file, _scope}) do
Path.basename(file.file_name)
Path.basename(file.file_name, Path.extname(file.file_name))
end
def s3_object_headers(_version, {file, _scope}) do