Error Creating Control - Uploader1?

Last post 02-18-2009, 9:31 PM by cutechat. 3 replies.
Sort Posts: Previous Next
  •  01-22-2009, 8:24 AM 47953

    Error Creating Control - Uploader1?

     
     

    I have placed the code from the multiple-files-upload.aspx example.

     I cut-n-paste the asp code into my upload.aspx and cut-n-paste the script into my upload.aspx.cs

     1. In Design View, the Uploader1 control shows an error:

          'Upload Multiple Files (Max 1-M)' could not be set on property 'InsertText'.

     2. SampleUtil errors so I commented it out like so:
         
          //SampleUtil.SetPageCache();


     3. I set the file path to our web folder like so:

     
    args.CopyTo(Server.MapPath("~\\temp\\") + args.FileName);


     And it works fine however,

     Q. Why do I have files like this: persisted.b7d1e76f-2876-422f-ae51-689a4afa371f.crownPoint640x480.jpg.resx?

     4. The "TempDirectory" property default is ~/UploaderTemp.

     Q. Should this be set to our ~/temp directory?

     
  •  01-22-2009, 10:47 AM 47957 in reply to 47953

    Re: Error Creating Control - Uploader1?

    *.resx files are temp files which will be removed by Ajax Uploader automatically.

    Unlike standard ASP.NET HtmlInputFile control, AJAX Uploader does not read the entire uploaded file into memory. It streams the data into a temporary file while the data is received. For this reason, you must specify a temporary file location. You should ensure that the ASPNET user (NetworkService in Windows Server 2003) has read/write permission to this specified folder.

     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-18-2009, 1:34 PM 48952 in reply to 47957

    Re: Error Creating Control - Uploader1?

    Thanks, I'll remember to dump that file as well as my temp folder...
  •  02-18-2009, 9:31 PM 48982 in reply to 47953

    Re: Error Creating Control - Uploader1?

    Hi,
     
    Please try the last version.
     
    I think the design time problem have been fixed a few weeks ago.
     
    Regards,
    Terry
View as RSS news feed in XML