Not clear on how Azure provider works for storage
Hi guys,
I've setup a new provider hooked up to Azure for a library. The provider was hooked up and everything is good then I wired up a new library to use it. Uploaded a document to the Sitefinity library and it appeared in the container in Azure. That's all good.
What I don't know is we had blobs already in the container as we're uploading them from an outside source. We wanted to expose them through Sitefinity but the existing blobs are not showing up in the library.
Is there not a two-way sync happening with libraries or is it only there to upload documents and store them in Azure blobs instead of the database or file system. I also thought setting the public host would mean the url to the documents in the library would be what the Sample blob url shows. Instead it's just the Azure name so the document links are accountname.blob.core.windows.net/.../filename.ext instead.
Thanks
Hello Bil,
The Azure storage provider is an external storage where the media files are stored, but not a library synchronization. So the links to the files are the actual url, where the file is stored.
More information about the Azure Storage provider is available here:
http://docs.sitefinity.com/configure-windows-azure-storage-provider
Regards,
Svetoslav Manchev
Telerik
Okay that makes sense.
One more thing that's confusing is the host name for media files. In our setup I've configured the storage provider with a public host of the site name (mywebsite.com for example). Files uploaded to a library connected to the provider have an embed link of http://mywebsite.com/container-name/docs/default-source/library-name/filename.ext?sfvrsn=1 however this results in a broken link. The actual URL is the azurewebsites one you can get from the container in Azure.
Is there something special you need to do to get the name to resolve to your hostname if you want to set this up?
Thanks
Hi Bil,
Sitefinity generates its own urls for media items. When this link is accessed, Sitefinity tries to retrieve the item and display it. In your case there could be some problem with the retrieving logic, but the exact issue should be investigated more detailed. I would recommend you to open a support ticket for further investigation on your project.
Regards,
Svetoslav Manchev
Telerik