Upload within Xform
Sometimes one would like to enable users to upload files in a Xform. Based on my blog post about extending xforms, I have added an upload function.
I check if an textbox have a css class called FileUpload. If it has it will replace that textbox with an upload function.
So it will look something like this
It handles also more than one file
The stuff that will be saved is like this
The code will upload files to a seperate VPP folder
<add showInFileManager="true" virtualName="XformFiles"
virtualPath="~/XformFiles/" bypassAccessCheck="true"
physicalPath="C:\EPiServer\VPP\XformFiles"
name="XformFiles" type="EPiServer.Web.Hosting.VirtualPathNativeProvider,EPiServer" />
I havent testet the code with CMS7 thou.
The code is uploaded here
Comments