upload problems with version 6.3 .net 1.x framework

Last post 07-24-2009, 7:11 AM by oompah. 2 replies.
Sort Posts: Previous Next
  •  07-23-2009, 6:00 PM 54232

    upload problems with version 6.3 .net 1.x framework

    I have no problems uploading files and documents using cuteeditor v6.3 in .net 2.0
     
    in codebehind I simply specify this
     

    cute.SetSecurityImageGalleryPath(GalleryPath)

    cute.SetSecurityImageBrowserPath(GalleryPath)

    cute.SetSecurityFilesGalleryPath(Documentpath)

     
    where GalleryPath and DocumentPath are good paths where I want the user to upload to an images or documents folder.
     
    When I try this same thing with .net 1.0 I get an error basically saying i can not upload to C:\windows\temp
     
    Please do not tell me I need to add this
     
    <add key="CuteEditorTempPath" value="~/CuteEditorTemp" />
     
    without explaining precisely where I should add it in my web.config - I tried every single possibly slot in my web.config file - all I get is "add" is not a recognized command
     
    Please advise.
     
    pat
     
  •  07-24-2009, 2:15 AM 54233 in reply to 54232

    Re: upload problems with version 6.3 .net 1.x framework

    Hi oompah,
     
    Two wyas
     
    1.  add '<add key="CuteEditorTempPath" value="~/uploadertemp" />' in web.config, like below:
     
    <?xml version="1.0" ?>
    <configuration>
      <appSettings>
        <add key="CuteEditorTempPath" value="~/uploadertemp" />
      </appSettings>
      <system.web>
        <httpModules>
          <add name="CuteEditor.UploadModule" type="CuteEditor.UploadModule,CuteEditor"/>
        </httpModules>
      </system.web>
    </configuration>
     
    2. Make usre your site have write permission of folder 'C:\windows\temp'
     
    Regards,
     
    Ken
  •  07-24-2009, 7:11 AM 54237 in reply to 54233

    Re: upload problems with version 6.3 .net 1.x framework

    terrific worked fine once you clarified the webconfig syntax rather than just saying add this line - thanks again.
View as RSS news feed in XML