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

After using private/no public access blob storage, the file preview and Toggle View gets blurry #28

Closed
mtduman opened this issue Jul 9, 2018 · 2 comments

Comments

@mtduman
Copy link

mtduman commented Jul 9, 2018

Hi, I changed the "JFKFilesBlobStorageAccountConnectionString" and "JFKFilesBlobContainerName” for a private blob storage and set the “Set Public Acces Level = No public access”.

The JFK interface works fine, but the file preview and Toggle View shows blurry.

P.S.
I commented lines 137,138 and 139 at Program.cs
// BlobContainerPermissions permissions = container.GetPermissions();
// permissions.PublicAccess = BlobContainerPublicAccessType.Container;
// await container.SetPermissionsAsync(permissions);

Many Thanks,
Matt

image

image

@mtduman
Copy link
Author

mtduman commented Jul 9, 2018

I tried to use SAS (shared access signatures) also, but couldn’t make it work. I am still getting blurry screen for the files. Where and what format should I put SAS on the code ?

@Careyjmac
Copy link
Collaborator

Hi Matt,

Unfortunately, it is expected that if you make the created blob have no public access then the provided user interface will no longer work as it expects the files to be public in order for it to be able to retrieve them for displaying on the webpage. If you want to use the website provided with this demo with your own private files, you may need to add additional steps to the website yourself for retrieving them. Luckily, you should still be able to review the results of the Cognitive Search part of the app via the Azure Search service that was created for you using the Azure portal or the Azure Search REST API, you just won't have the nice web page to help make it more readable.

Using a SAS token will not solve the above problem related to the website, but just in case, there is documentation here on the format that the token needs to be in in order for Azure Search to be able to index the data properly.

-Carey

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

No branches or pull requests

2 participants