Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

How to set content disposition for blob storage #1004

Open
amitagrawal124 opened this issue Jun 18, 2020 · 0 comments
Open

How to set content disposition for blob storage #1004

amitagrawal124 opened this issue Jun 18, 2020 · 0 comments

Comments

@amitagrawal124
Copy link

amitagrawal124 commented Jun 18, 2020

I am trying to upload the pdf file and trying to set the content-disposition inline to preview it on the browser.

$content = fopen($targetdir.'/'.$fileToUpload, "r");
$options = new CreateBlobOptions();
$options->setContentDisposition('inline');
$blobClient->createBlockBlob($containerName, $fileToUpload, $content, $options);

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

No branches or pull requests

1 participant