文件名称

dev_jupyter
daiao 5 years ago
parent 5202469215
commit 2ed2a4c453

@ -896,7 +896,8 @@ class ShixunsController < ApplicationController
author_email = current_user.git_mail
message = params[:message] || "upload file by browser"
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
end

Loading…
Cancel
Save