Commit 6d6b515f by Ivan Lan

fix: file 处理中 fileType -> mimeType

parent 9a33c7e2
......@@ -283,7 +283,7 @@ module TalltyImportExport
data.map do |item|
url = item.dig('url')
url.present? ?
"#{url}?fileName=#{URI.encode_www_form_component(item.dig('fileName'))}&fileSize=#{URI.encode_www_form_component(item.dig('fileSize'))}&fileType=#{URI.encode_www_form_component(item.dig('fileType'))}" :
"#{url}?fileName=#{URI.encode_www_form_component(item.dig('fileName'))}&fileSize=#{URI.encode_www_form_component(item.dig('fileSize'))}&mimeType=#{URI.encode_www_form_component(item.dig('mimeType'))}" :
nil
end.compact.join("\n")
else
......
......@@ -177,7 +177,7 @@ module TalltyImportExport
{
url: url,
fileName: params['fileName']&.first,
fileType: params['fileType']&.first,
mimeType: params['mimeType']&.first,
fileSize: params['fileSize']&.first&.to_i,
}
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment