# media-cloud-sync/1.4.2/includes/base/stream-wrappers/s3.php

Media Cloud Sync, version 1.4.2. 23 lines.

- Page: https://pluginprobe.com/plugins/media-cloud-sync/1.4.2/code/includes/base/stream-wrappers/s3.php
- Raw: https://pluginprobe.com/plugins/media-cloud-sync/1.4.2/raw/includes/base/stream-wrappers/s3.php
- Modified: 2026-09-28T18:24:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/media-cloud-sync/1.4.2/code/includes/base/stream-wrappers/s3.php#L10-L20`.

```php
<?php
namespace Dudlewebs\WPMCS;

use Dudlewebs\WPMCS\s3\Aws\S3\StreamWrapper;

defined('ABSPATH') || exit;

/**
 * Read-only wrapper for the four S3-family providers (S3, DigitalOcean
 * Spaces, Cloudflare R2, S3-compatible) — they all construct the identical
 * vendored Aws\S3\S3Client, so one subclass covers all four.
 *
 * @since 1.4.3
 */
class ReadOnlyS3StreamWrapper extends StreamWrapper {
    use ReadOnlyStreamWrapperTrait;

    /** The one method that isn't shared — only the S3 vendor class implements it. */
    public function stream_truncate($new_size) {
        return false;
    }
}

```
