Have you configured the storageProviders section baf.config and verified the ecf.asset.config file?
Also i would recommend not using assets as there is no caching whatsoever and the more files you have stored in the asset system the slower it gets because the number of sql calls grows per asset as you put in more and more assets :( Workaround is to write your own virtual path provider for assets and implement proper caching.
This is how the storageProviders baf.config looks like:
<storageProvider defaultProvider="DiskBlobStorageProvider">
<providers>
<add name="DiskBlobStorageProvider" type=" Mediachase.BusinessFoundation.Blob.DiskBlobStorageProvider, Mediachase.BusinessFoundation" allowSearch="False" basePath="" />
<add name="SqlBlobStorageProvider" type=" Mediachase.BusinessFoundation.Blob.SqlBlobStorageProvider, Mediachase.BusinessFoundation" allowSearch="True" />
<add name="PublicDiskBlobStorageProvider" type=" Mediachase.BusinessFoundation.Blob.PublicDiskStorageProvider, Mediachase.BusinessFoundation" allowSearch="False" basePath="" />
<add name="S3StorageProvider" type="Mediachase.Library.AmazonProviders.S3StorageProvider, Mediachase.Library.AmazonProviders" allowSearch="False" accessKeyID="id" secretAccessKey="secretkey" bucketName="ecf" useSSL="false" useSubDomains="true" expirationTimeSpan="1:0:0" />
</providers>
</storageProvider>
The basePath points to an location on a network share.
This is my ecf.asset.config:
<?xml version="1.0"?>
<!-- Auto install flag here will check if Meta Classes are configured during runtime and create them -->
<AssetManagement autoInstall="true">
<Roles>
<add name="AdminRole" value="Asset Admins" />
<add name="ManagerRole" value="Asset Managers" />
<add name="SchemaManagerRole" value="Asset Schema Managers" />
<add name="ViewerRole" value="Asset Viewers" />
</Roles>
<!--
Setup storage providers:
providers can be setup based on path, mimeType, size and extension, for example
<add path="\root\text\*">
<add extension="txt" mimeType="text/plain" maxSize="1Kb" storageProvider="SqlBlobStorageProvider" downloadProfile="iis"/>
<add mimeType="image/*" maxSize="200Kb" storageProvider="DiskBlobStorageProvider" downloadProfile="iis"/>
</add>
-->
<FolderProviders>
<add path="\Root\Cloud\*">
<add storageProvider="S3StorageProvider" downloadProfile="s3" />
</add>
<add path="\Root\Database\*">
<add storageProvider="SqlBlobStorageProvider" downloadProfile="open" />
</add>
<add path="\*">
<add storageProvider="PublicDiskBlobStorageProvider" downloadProfile="iis" />
</add>
</FolderProviders>
<DownloadFilters>
<add name="thumbnail" type="Mediachase.Commerce.Assets.DownloadFilterThumbnail, Mediachase.Commerce" />
</DownloadFilters>
<ElementTypes>
<add mimeType="image/jpeg" type="Mediachase.Commerce.Assets.ImageFolderElementExtension, Mediachase.Commerce" />
</ElementTypes>
</AssetManagement>
Hi!
I'm trying to upload an asset, but nothing happens when I press upload:
If I look in FireBug, I see hundreds of requests (and counting), returning the same result: UploadResult: -1.
Can somebody help me with this problem?
Thanks!