文件名称

dev_aliyun2
daiao 5 years ago committed by harry
parent 0f4953e8fe
commit 94337d3331

@ -897,7 +897,8 @@ class ShixunsController < ApplicationController
author_email = current_user.git_mail author_email = current_user.git_mail
message = params[:message] || "upload file by browser" message = params[:message] || "upload file by browser"
uid_logger("-----author_email: #{author_email}") uid_logger("-----author_email: #{author_email}")
update_file_base64_content(content, @repo_path, @path, author_email, author_name, message) path = @path.present? ? "#{@path}/#{upload_file.original_filename}" : "#{upload_file.original_filename}"
update_file_base64_content(content, @repo_path, path, author_email, author_name, message)
render_ok render_ok
end end

Loading…
Cancel
Save