Skip to content

Commit

Permalink
fix up content type gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
nmenag committed Dec 25, 2023
1 parent 7ae51b1 commit bf366bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/core/lib/core/uploader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ defmodule GoEscuelaLms.Core.GCP.Manager do
conn = connection()
file_name = resource.filename
path = resource.path
content_type = resource.content_type

meta = %GoogleApi.Storage.V1.Model.Object{
name: "resources/#{object.uuid}",
contentType: "text/csv"
contentType: content_type
}

file_binary = File.open!(path)
Expand Down

0 comments on commit bf366bc

Please sign in to comment.