|
|
|
@ -38,7 +38,8 @@ class AttachmentsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
content_type = upload_file.content_type.presence || 'application/octet-stream'
|
|
|
|
|
|
|
|
|
|
remote_path = file_save_to_ucloud(local_path[folder.size, local_path.size], local_path, content_type)
|
|
|
|
|
# remote_path = file_save_to_ucloud(local_path[folder.size, local_path.size], local_path, content_type)
|
|
|
|
|
remote_path = nil # TODO 暂时本地上传,待域名配置后方可上传至云端
|
|
|
|
|
|
|
|
|
|
logger.info "local_path: #{local_path}"
|
|
|
|
|
logger.info "remote_path: #{remote_path}"
|
|
|
|
|