been reviewing the AWS posts, but am still struggling to get it working correctly.
in ewcfg: (tried without the uploads folder…)
UPLOAD_DEST_PATH" => "s3://mybucket/uploads/
have a key and code ( just put these items int he php code, i didn’t see anywhere else on aws to assign these creds to that “mybucket”)
set bucket to public access
created a folder called uploads
message:
"cURL error 3: = CURLE_URL_MALFORMAT (3) The URL was not properly formatted.
full error: rasied class aws\s3\exception\s3exception with message “error executing “headobject” on mybucket/uploads/temp_ …” at wrappterhttphander.php line195
In your project you need to include AWS SDK for PHP, see the topic Server Events and Client Scripts → Server Events → “Global → All Pages” → Global Code → Example 2 in the help file.
Where did you see that? This does not work correct.
From the example, the host should be defined with AWS SDK for PHP like:
$s3client = new \Aws\S3\S3Client([
“version” => “latest”,
“region” => “ca-central-1” // Change to your own region
//, “http” => [“verify” => FALSE] // Disable certificate verification (this is insecure!)
]);
In your project you need to include AWS SDK for PHP, see the topic Server Events and Client Scripts → Server Events → “Global → All Pages” → Global Code → Example 2 in the help file.
Where did you see that? This does not work correct.
i copied it from the AWS account screen, i will change as noted below
$s3client = new \Aws\S3\S3Client([
“version” => “latest”,
“region” => “ca-central-1” // Change to your own region
//, “http” => [“verify” => FALSE] // Disable certificate verification (this is insecure!)
]);
i updated this
“UPLOAD_TEMP_HREF_PATH” => “uploads”, // Upload temp href path (absolute URL path for download)
and the add document page now appeared and went through the motions of uploading a file… but I have no clue to where. when I checked the S3 storage nothing is there… and the local uploads folder is empty except for the temp__ folders…
For public addess of the bucket under ACL everyone has nothing enabled.
changed as for testing:
“UPLOAD_TEMP_PATH” => “/tmp”, // Upload temp path (absolute local physical path)
“UPLOAD_TEMP_HREF_PATH” => “/tmp”, // Upload temp href path (absolute URL path for download)
then the other issue was my path that is built on the upload…
developing on windows the PATH_DELIMITER = "", so when the upload was happening it was replacing the "" with the escaped code (%5C) and was failing, once i changed it to “/” the upload worked. not sure it that’s true or not, but it the was able to upload and view the test files…
I pushed the code to my dev linux box with the original path string using “PATH_DELIMITER” and all was fine.