如何将文件上传到Filemanager(响应文件管理器)中的Amazon并在上传图像后对其进行加密。
使用此设置时,它仅将所有图像保存在我的本地文件夹中,对此有什么想法吗?
当我将'curent_path'更改为'https://s3-us-west-2.amazonaws.com/dir/subdir/directoryhere时,它在php上给了我错误
下面是我的示例代码设置
if (!empty($_SERVER["SERVER_NAME"])) {
$host = $_SERVER["SERVER_NAME"];
} else {
$host = "localhost";
}
$urlParts = explode(".",$host);
$subdomain = $urlParts[1];
if ($subdomain == "tvms") {
$link = "https://s3.amazonaws.com";
$bucket = "tvms-live";
} else {
$link = "https://s3-us-west-2.amazonaws.com";
$bucket = "tvms-uat";
}
define('USE_ACCESS_KEYS', false); // TRUE or FALSE
define('DEBUG_ERROR_MESSAGE', true); // TRUE or FALSE
$config = array(
//'base_url' => ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"). "://". @$_SERVER['HTTP_HOST'],
'base_url' => $link,
'upload_dir' => '/' . $bucket . '/acvr/uploads/hostedimages/',
'current_path' => '../source/',
'thumbs_base_path' => '../thumbs/',
'mime_extension_rename' => true,
'ftp_host' => false, //put the FTP host
'ftp_user' => "user",
'ftp_pass' => "pass",
'ftp_base_folder' => "base_folder",
'ftp_base_url' => "http://site to ftp root",
// Directory where place files before to send to FTP with final /
'ftp_temp_folder' => "../temp/",
'ftp_thumbs_dir' => '/thumbs/',
'ftp_ssl' => false,
'ftp_port' => 21,
/* EXAMPLE
'ftp_host' => "host.com",
'ftp_user' => "test@host.com",
'ftp_pass' => "pass.1",
'ftp_base_folder' => "",
'ftp_base_url' => "http://host.com/testFTP",
*/
'multiple_selection' => true,
'multiple_selection_action_button' => true,
'access_keys' => array(
'key' =>'AAKJSKDFIOUEJKNRWELNQWEWQE',
'secret' => 'opisdfj2j3kl2n43249sdfijadsf890324'
),
此处显示错误消息