Skip to content

Extra requests #554

Open
Open
@JeroenVanOort

Description

@JeroenVanOort

If I'm getting this correct, php-opencloud does 3 requests where only one is needed. I will assume we've already got an authenticated object store service.

$service->getContainer('testcontainer')->uploadObject('testfile.txt', 'testcontent');

This first gets me the container, then uploads the object and than gets the object I've just uploaded.

I don't need all this. I want to be able to assume my container exists (and not check for it) and I don't want to be obligated to get the object returned from uploadObject because I know what I've just uploaded.

I know there are situations where one would need this, but I want to have a choice as a developer. Something like this wouldn't cause a breaking change right? The current behavior could co-exist with this.

$service->uploadObject('testfile.txt', 'testcontent', 'testcontainer', false);

Please let me know what you think. I'm willing to put some work in to this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions