Skip to content

Formtools for direct Azure Blob Storage upload support

Notifications You must be signed in to change notification settings

farcrycore/plugin-azureupload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Upload Plugin

A temporary plugin which adds two new formtools which support uploading direct to Azure Blob Storage.

It includes an azureupload formtool for single file properties and an azurearrayupload formtool for array properties (multiple file uploads using related objects).

These features will eventually be integrated into the image and file formtools in Core, so this plugin is intended as a stop gap alternative until then.

This plugin is compatible with FarCry 7.2.x and over.

Azure Upload Plugin is available under LGPL and compatible with the open source and commercial licenses of FarCry Core.

Massively scalable object storage for unstructured data With exabytes of capacity and massive scalability, Blob Storage stores from hundreds to billions of objects in hot, cool or archive tiers, depending on how often data access is needed. Store any type of unstructured data – images, videos, audio, documents and more – easily and cost-effectively. https://azure.microsoft.com/en-au/services/storage/blobs/

Setup

The project must be using Azure for all file storage.

The Azure storage account / container CORS policy must allow GET and PUT for the website domain.

The following settings should be included in the setLocation configuration:

Key Description
cdnShould be set to `azure`.
nameAs per normal location configuration.
storageKeyThe Azure storage API key.
accountThe Azure storage account.
containerThe Azure storage container - different containers will typically be used for different CDN locations.
security`private` or `public`, depending on how the container has been configured.
urlExpiryThe number of seconds that signed URLs should be valid for. Only needs to be set if security is private.
pathPrefixAs per normal location configuration. Note that if each location is in a different container (as recommended), no prefix is required.
localCacheSizeAs per normal location configuration.
indexableFlag this location as being indexable by Azure Search. Should not be set to true for archive, temp, or image locations.