Uploading files to Azure Storage

QuestionsUploading files to Azure Storage
Matt asked 3 weeks ago

Hi Abu,

 

Do you have any instructions on how to get file storage working with Azure Storage?

 

Thanks

2 Answers
Abu Ghufran Staff answered 3 weeks ago

Hello,

You can use callback events like on_insert and in callback function write code to move uploaded file to azure storage using their api.

Refer: https://www.gridphp.com/docs/grid-events/ and Demo Code: Line 162

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Matt answered 3 weeks ago

Thanks Abu.  I had a play around with it as you suggested but I’m no programmer and the Azure API instructions were well over my head.  I got it working though by enabling CORS in Azure and using the regular phpgrid file saving method to save directly to the app service file storage instead of a separate azure blob store.  Hopefully this helps someone else out in the same situation.

Your Answer

8 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?