Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
evach-vf opened this issue Jul 22, 2016 · 0 comments
Open

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

evach-vf opened this issue Jul 22, 2016 · 0 comments

Comments

@evach-vf
Copy link
Contributor

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants