Re: information ajaxuploader

  •  07-24-2009, 1:25 PM

    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

View Complete Thread