You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An [Azure Blob Storage](http://azure.microsoft.com/en-gb/develop/net/) IFileSystem provider for [Umbraco](https://umbraco.com)7.1.9+.
7
+
An [Azure Blob Storage](http://azure.microsoft.com/en-gb/develop/net/) IFileSystem provider for [Umbraco](https://umbraco.com)
8
8
Used to offload static files in the media section to the cloud.
9
9
10
-
Designed to supersede [UmbracoAzureBlobStorage](https://github.com/idseefeld/UmbracoAzureBlobStorage) by [Dirk Seefeld](https://twitter.com/dseefeld65) (With his blessing) this package allows the storage and retrieval of media items using Azure Blob Storage while retaining the relative paths to the files expected in the back office.
10
+
This package allows the storage and retrieval of media items using Azure Blob Storage while retaining the relative paths to the files expected in the back office.
11
11
12
12
**v2 requires Umbraco v8.0.1+**
13
13
@@ -30,7 +30,7 @@ Both NuGet and Umbraco packages are available. If you use NuGet but would like t
30
30
31
31
If you prefer, you can compile UmbracoFileSystemProviders.Azure yourself, you'll need:
32
32
33
-
* Visual Studio 2015 (or above)
33
+
* Visual Studio 2017 (or above)
34
34
35
35
To clone it locally click the "Clone in Windows" button above or run the following git commands.
36
36
@@ -42,52 +42,17 @@ cd UmbracoFileSystemProviders.Azure
42
42
43
43
In the interim code reviews and pull requests would be most welcome!
44
44
45
-
## Usage
46
-
47
-
**Note:** Upon release most of configuration this will be automated.
48
-
49
-
Update `~/Config/FileSystemProviders.config` replacing the default provider with the following:
Optional configuration value determining the maximum number of days to cache items in the browser.
61
-
Defaults to 365 days.
62
-
-->
63
-
<addkey="maxDays"value="365" />
64
-
<!--
65
-
When true this allows the VirtualPathProvider to use the default "media" route prefix regardless
66
-
of the container name.
67
-
-->
68
-
<addkey="useDefaultRoute"value="true" />
69
-
<!--
70
-
When true blob containers will be private instead of public what means that you can't access the original blob file directly from its blob url.
71
-
-->
72
-
<addkey="usePrivateContainer"value="false" />
73
-
</Parameters>
74
-
</Provider>
75
-
</FileSystemProviders>
76
-
```
45
+
### Configuration via Web.Config
77
46
78
-
Developmental mode configuration using the [Azure Storage Emulator](https://azure.microsoft.com/en-us/documentation/articles/storage-use-emulator/) for testing is as follows:
By default the plugin will serve files transparently from your domain or serve media directly from Azure. This is made possible by using a custom [Virtual Path Provider](https://msdn.microsoft.com/en-us/library/system.web.hosting.virtualpathprovider%28v=vs.110%29.aspx) included and automatically initialised upon application startup. This can be disable by adding the configuration setting noted above.
144
76
@@ -160,7 +92,7 @@ The following configuration is required in your `web.config` to enable static fi
160
92
</configuration>
161
93
```
162
94
163
-
For **Umbraco v7.5+ you must add the the StaticFileHandler**to the new Web.config inside the `Media` folder instead of the root one or the VPP will not work!
95
+
Also add this configuration to the `web.config` inside the `Media` folder
164
96
165
97
```xml
166
98
<?xml version="1.0" encoding="UTF-8"?>
@@ -177,27 +109,8 @@ For **Umbraco v7.5+ you must add the the StaticFileHandler** to the new Web.conf
177
109
178
110
## Combining with ImageProcessor
179
111
180
-
As of ImageProcessor.Web version [4.3.2](https://www.nuget.org/packages/ImageProcessor.Web/4.3.2) a new [`IImageService`](http://imageprocessor.org/imageprocessor-web/extending/#iimageservice) implementation has been available called `CloudImageService`. To enable that service and pull images directly from
181
-
the cloud simply install the [configuration package](https://www.nuget.org/packages/ImageProcessor.Web.Config/) and replace the `CloudImageService`setting with the following:
**Note** The `CloudImageService`is not compatible with the FileSystemProvider when using private storage. You will have to build your own `IImageService` implementation.
199
-
200
-
If using a version of ImageProcessor.Web version [4.5.0](https://www.nuget.org/packages/ImageProcessor.Web/4.5.0) the configuration details will need to be configured as follows:
112
+
ImageProcessor.Web contains a [`IImageService`](http://imageprocessor.org/imageprocessor-web/extending/#iimageservice) called `CloudImageService`, to enable that service and pull images directly from
113
+
the cloud replace the `CloudImageService`setting with the following:
201
114
202
115
```xml
203
116
<?xml version="1.0"?>
@@ -215,8 +128,10 @@ If using a version of ImageProcessor.Web version [4.5.0](https://www.nuget.org/p
215
128
</services>
216
129
</security>
217
130
```
131
+
**Note** The `CloudImageService`is not compatible with the FileSystemProvider when using private storage. You will have to build your own `IImageService` implementation.
132
+
218
133
219
-
Be sure to install the [AzureBlobCache](http://imageprocessor.org/imageprocessor-web/plugins/azure-blob-cache/) plugin to get the most out of the package.
134
+
Optionally install the [AzureBlobCache](http://imageprocessor.org/imageprocessor-web/plugins/azure-blob-cache/) plugin to get the most out of the package.
0 commit comments