Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to store pdf's on Azure

I have a WordPress on Linux App running on Azure with a MySql database.

I need to be able to upload PDF files to Azure, and then have a link in the web site that will enable users to then click the link and view the PDF.

To be more specific, the document is a monthly invoice that is created on premise and then uploaded to Azure. The user will log-in and then see a link that will allow him to view the invoice.

What I don't know is how the document should be stored. Should it be stored in the MySql database? Or in some type of storage which can be linked to? Of course, it needs to be secure.

like image 445
Greg Gum Avatar asked Nov 30 '17 15:11

Greg Gum


1 Answers

You can use Azure blob storage to upload/store your PDF documents. Each document stored will have a link that can be then shown in your website. And also you can protect these resources and use SAS, shared key authentication mechanisms to access the resources.

like image 86
Gopi Kolla Avatar answered Nov 15 '22 05:11

Gopi Kolla