Forum
 
 
Knowledge Base Forum
To post messages on the forum, you need to login first.
SearchForum Home
  Product Forums  smartDBforms.NET  File Upload: we...
 File Upload: web.config <appsettings>
 
 6/8/2010 1:49:47 PM
Erik
2 posts


File Upload: web.config <appsettings>
I have read the available post regarding file upload using the FileNameFromDiskTemplate and I have carried out everything stipulated in the posts as well as in the online documentation, but for the addition needed to be made in the in the web.config file. I am trying to place the following code in the web.config file belonging to the project folder What seems odd to me is that I find one location tab of the appsettings but only one, this is what puzzles me (and it has the / at the end of appsettings and not in front indicating closing of location tab), look below: I apologize if above mentioned ought to be obvious knowledge which I am clearly lacking, but that is the reason I went with smartDBForms to begin with. Looking forward getting advice on how to proceed.
 6/8/2010 1:55:00 PM
Erik
2 posts


Re: File Upload: web.config <appsettings>
I have read the available post regarding file upload using the FileNameFromDiskTemplate and I have carried out everything stipulated in the posts as well as in the online documentation, but for the addition needed to be made in the in the web.config file. I am trying to place the following code in the web.config file belonging to the project folder

appSettings
add key="SDBF_UploadDirectory" value="~/UploadDir/"/
/appSettings

What seems odd to me is that I find one location tab of the appsettings but only one, this is what puzzles me (and it has the / at the end of appsettings and not in front indicating closing of location tab), look below:

[...]
smartDBforms.NET templatesLocation="~/smartDBtemplates/TemplatesStorage.ascx" resourceClassKey="smartDBresources"/
appSettings/
connectionStrings

I apologize if above mentioned ought to be obvious knowledge which I am clearly lacking, but that is the reason I went with smartDBForms to begin with. Looking forward getting advice on how to proceed.
 6/9/2010 11:08:14 AM
Adillis Support
51 posts
adillis.com


Re: File Upload: web.config <appsettings>

Hi Erik,

Sorry for the inconvenience. The <appSettings/> tag is just a short form of the empty tag - <appSettings></appSettings> .

You can delete the <appSettings/> tag and then put the one you have prepared. Here is an example of the DemoSite Web.config:

<appSettings>
 <add key="SDBF_UploadDirectory" value="~/UploadDir/"/>
 <!--
The directory for the uploaded files which are stored on hard drive-->
 <add key="SDBF_UploadMaxFileBytes" value="204800"/>
 <!--
200 K - Maximum size in bytes for upload files and images-->
</appSettings>


This appSettings will be added to the New Project template so that they dont have to be entered manually and will be included in the next release of smartDBforms.NET – version 2.5

If you have any other questions, we will be more than happy to help you.
Best wishes,
Adillis Support
Adillis - IT solutions http://adillis.com

  Product Forums  smartDBforms.NET  File Upload: we...
Copyright 2006-2011 Adillis Terms Of Use Feedback Contact Us