2.0 has been released

Coordinator
Nov 2, 2008 at 12:27 AM
Edited Nov 10, 2008 at 3:40 PM
It is compatible with flash player 10 limitations and can have post back requests

It will also work inside an update panel
Nov 10, 2008 at 3:31 PM
Hello, I just upgraded my binary to the 2.0 beta, but my project will no longer build. I've got a custom adapter I built, and I'm getting the following errors when VS tries to build that portion:

'com.flajaxian.CustomUpAdapter' does not implement inherited abstract member 'com.flajaxian.FileUploaderAdapter.ProcessFile(System.Web.HttpPostedFile)'  
'com.flajaxian.CustomUpAdapter.ProcessFile(System.Web.HttpPostedFile, System.Collections.Hashtable)': no suitable method found to override   

Here's the code in question:

namespace com.flajaxian
{
    public class CustomUpAdapter : FileUploaderAdapter
    {
        private string _folderName;

        public override void ProcessFile(HttpPostedFile file, Hashtable state)
        {
            if (!String.IsNullOrEmpty(this.FolderName))
            {
                ....stuff
            }
        }

        public string FolderName
        {
            get { return this._folderName; }
            set { this._folderName = value; }
        }
    }
}
Coordinator
Nov 10, 2008 at 3:39 PM
Yes I've changed the method signiture so there is no more Hashtable state - I think this is redundant concept. I wanted to make it all cleaner. Just make it:

namespace com.flajaxian
{
    public class CustomUpAdapter : FileUploaderAdapter
    {
        private string _folderName;

        public override void ProcessFile(HttpPostedFile file)
        {
            if (!String.IsNullOrEmpty(this.FolderName))
            {
                ....stuff
            }
        }

        public string FolderName
        {
            get { return this._folderName; }
            set { this._folderName = value; }
        }
    }
}
Nov 10, 2008 at 4:30 PM
Wonderful as always! I made that change and it's working like a champ, Flash 10 and all.