You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InvalidArgumentException thrown with message "Found 1 error while validating the input provided for the DeleteObjects operation:
[Delete] is missing and is a required parameter"
Edit:
Updating Codesleeve\Stapler\Storage\S3 class resolved this issue:
/**
* Remove an attached file.
*
* @param array $filePaths
*/
public function remove(array $filePaths)
{
if ($filePaths) {
$this->s3Client->deleteObjects([
'Bucket' => $this->attachedFile->s3_object_config['Bucket'],
'Delete' => [
'Objects' => $this->getKeys($filePaths)
],
]);
}
}
Edit 2:
I ended up changing the aws sdk to ~2.0 instead of ~3.0 in composer, and removed the changes above. If sdk v3.0 is needed, Codesleeve may need to check the version of the aws package and change syntax accordingly.
Getting error on delete, the said image is not deleted from the aws account either
The text was updated successfully, but these errors were encountered: