information ajaxuploader

Last post 07-24-2009, 10:44 PM by cutechat. 2 replies.
Sort Posts: Previous Next
  •  07-24-2009, 3:19 AM 54235

    information ajaxuploader

    Hi to all,
     
    First, sorry for my bad english.
     
    Before to buy this program i need to know if it is possible to do some operations beacuse in my test demo i didn't make nothing
    1) is it possible to set the dynamically the output directory for the upload file and not in web.config or asp tag but for example after dropdownlist selected ?
    2) is "UploaderTemp"(default) directory where the files will be uploaded on server?, in my test demo i have the resx files, where do I find the real file in demo? 
     
    thanks bye bye
  •  07-24-2009, 1:25 PM 54261 in reply to 54235

    Re: information ajaxuploader

    1) is it possible to set the dynamically the output directory for the upload file and not in web.config or asp tag but for example after dropdownlist selected ?
     
    Yes. For example:
     
    1. void Uploader_FileUploaded(object sender, UploaderEventArgs args)   
    2.        {   
    3.            Uploader uploader = (Uploader)sender;   
    4.            InsertMsg("File uploaded! " + args.FileName + ", " + args.FileSize + " bytes.");   
    5.               
    6.            //Copies the uploaded file to a new location.   
    7.            //args.CopyTo("c:\\temp\\"+args.FileName);   
    8.            //You can also open the uploaded file's data stream.   
    9.            //System.IO.Stream data = args.OpenStream();   
    10.        }  
     
     
    2) is "UploaderTemp"(default) directory where the files will be uploaded on server?, in my test demo i have the resx files, where do I find the real file in demo? 
     
    UploaderTemp only stores the temp files.
     
    You still need to use .Copyto or .MoveTo to copy the uploaded files to your target location.
     

    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

  •  07-24-2009, 10:44 PM 54269 in reply to 54235

    Re: information ajaxuploader

    Hi,
     
    Please check the uploader.TempDirectory property too.
     
    You can modify it at runtime.
     
    But uploader will not maintain it until next time that folder be used.
     
    Regards,
    Terry
     
View as RSS news feed in XML