Skip to content

Container::UploadObject() not returning Etag and ContentType #683

Open
@evach-vf

Description

@evach-vf

When uploading an object using Container::UploadObject(), the returned object doesn't have their Etag and ContentType set, they're both NULL.

On success, both values should be set and returned.

Example code:

// Upload an object to the container.
$localFileName  = __DIR__ . '/php-elephant.jpg';
$remoteFileName = 'php-elephant.jpg';

$handle = fopen($localFileName, 'r');
$object = $container->uploadObject($remoteFileName, $handle);

The same thing also occurs with Container::UploadObjects()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions