-
Notifications
You must be signed in to change notification settings - Fork 158
Configuration
blackcity edited this page Jun 10, 2013
·
19 revisions
###Configuration example In this example all options are set, mostly with the default values (Note: You do not have to set the default values explicitly in your real projoct). All options, settings and enumerations are suggested by the Visual Studio Intellisense and verified against the schema if you follow the setup instructions in Example 02 or Example 03.
<?xml version="1.0"?> <fileUpload storageContext="Filesystem" enableIntegratedHandler="true" webFilesRoot="" uniqueFileNames="false" keepOrgFileNames="false" getInclSubFolders="true" returnFilesUrl="true" returnExtraInfo="basic" allowDelete="true" deleteHandler="~/Backload/UploadHandler" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:name="urn:fileupload-schema" xsi:noNamespaceSchemaLocation="Web.FileUpload.xsd" > <fileSystem filesRoot="~/Files" usersRoot="" objectsRoot="" /> <database assemblyName="Backload_Tester" dbContext="Backload_Tester.UpFilesEntities" entitySetName="Files" primaryKeyName="ID" /> <security allowAnonymous="true" allowedDownloadRoles="*" allowedUploadRoles="*" allowedDeleteRoles="*" /> <images width="600" height="400" dpi="96" canvasColor="#ffffffff" forceImageType="none" resizeMode="none" /> <thumbnails path="_thumbs" width="80" height="80" dpi="96" canvasColor="#00ffffff" resizeMode="ratio" imageType="image/png" /> <clientFiles scripts="~/Scripts/FileUpload/" styles="~/Content/FileUpload/css/" /> <contentTypes thumbnailPath="~/Content/FileUpload/content-types/" thumbnailSize="48" useThumbnailCanvas="true"> <!-- <clear /> // Deletes all predefined types --> <remove name="_AdobePDFFile"/> <!--Remove predefined pdf type handling--> <add name="SamplePDFFiles" extFragment=".pdf" typeFragment="application/pdf" thumbnail="PDF.png" subFolder="pdfs" /> <add name="SampleAllImageFiles" extFragment="" typeFragment="image/" thumbnail="" subFolder="images" /> </contentTypes> </fileUpload>