From 00af9fe75dab32db6de4e747747db656a3b5394a Mon Sep 17 00:00:00 2001 From: jasder Date: Wed, 17 Jul 2019 10:44:48 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9B=A0=E5=9F=9F=E5=90=8D=E9=85=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E6=9A=82=E6=97=B6=E5=8F=AA=E6=94=AF=E6=8C=81=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachments_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 5132e203c..571374468 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -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}"