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
**Namespace: Gosso.EPiServerAddOn.DownloadIfMissingFileBlob** Version 1.1 (2016-07-01)
3
3
4
4
**Applicable to CMS >7.5 (MVC or Webforms) - tested with CMS9.6.1**
5
5
@@ -12,49 +12,61 @@ This AddOn is heaven for developers, get rid of copying the production blobs to
12
12
## How it works
13
13
When the EPiServer CMS page is binding the model to the page, the Provider GetBlob(URI id) is called for every Blob used on the loaded page. The Download If Missing File Blob Provider check if file exists on the local blob directory, if not it requests the Gosso.EpiserverAddOn.DownloadIfMissingFileBlob.UrlResolver.ashx* on the Production server and downloads the file with the friendly URL.
14
14
15
-
*this ashx must exist on the production server
15
+
*this ashx webhandler is automaticly added on init
16
16
17
17
*The DownloadIfMissingFileBlobProvider is using a web request to the ashx on the production server since the local database is locked (because of possible chance of eternal loop) during request and we don’t have the possibility to find out the friendly URL to the file.
18
18
19
19
## Performance overload
20
20
Yes, initially on application load, it will take some time to download the loaded files.
21
21
## Configuring
22
22
23
-
**UrlResolverUrl** is needed to get the friendly relative url.
23
+
**Activated** is needed to get it working. Set to true on DEV, och false in PROD.
24
24
25
25
**ProdUrl** is pointing to the production server and appends the friendly relative url when downloading the files. For example ProdUrl + “globalassets/images/folder/name.png”
26
26
27
+
**UrlResolverUrl** is NOT mandatory, can be empty, it is used to get the friendly relative url of the blob.
28
+
27
29
**RestrictedFileExt** helps to restrict which files to not download
28
30
29
31
**Path** to the blob url (default "[appDataPath]\\blobs")
1. You will need release the addon on the production server (dll and urlresolver.ashx) before you give it a try.
47
-
- The easy way, drop the urlResolver.ashx anywhere on prodserver, also put the addon dll in bin-folder
49
+
1. You will need release the addon (dll) on the production server before you give it a try.
50
+
- The easy way, drop the dll in bin-folder!
48
51
2. Do not configure the provider in web.config <episerver.framework>
49
-
(or episerverframwork.config) on the production server (even though we have a smaller built in check if it is in production to prevent loops.)
52
+
(or episerverframwork.config) on the production server (even though we have a smaller built in check if it is in production to prevent loops.) OR you may set Activated=false
50
53
3. The production server must be active/public reachable
51
54
4. The files must be public reachable thru a public url
52
55
53
56
## Installation
54
-
Under the release tab you may download the nuget package to your local feed for installation with package manager console in Visual Studio. It will install two file, the Gosso.EPiServerAddOn.MissingFileBlobProvider.dll into the bin folder, and the UrlResolver.ashx, installation path /module/Gosso.EpiserverAddon.MissingFileBlobProvider/. Also configure episerverframework.config with the MissingFileBlob.
57
+
Under the release tab you may download the nuget package to your local feed for installation with package manager console in Visual Studio. It will install one file, the Gosso.EPiServerAddOn.MissingFileBlobProvider.dll into the bin folder. Also configure episerverframework.config/web.config with the MissingFileBlob.
55
58
56
59
You can also download the source code project and add it to your solution, therefore you may easily debug it if needed.
57
60
61
+
## Customization
58
62
59
-
60
-
63
+
If you want to change the default URLResolver path, you may use this web.config and change the **UrlResolverUrl**
0 commit comments