//Upload file to the AviaryFX server
    void btnUpload_Click(object sender, EventArgs e)
    {
        AviaryFXFile aviaryFXFile = null;

        if (fileUpload.HasFile)
        {
            aviaryFXFile = UploadToAviaryFX(fileUpload.FileName, fileUpload.FileBytes);

            imageArea.Src            = aviaryFXFile.Path;
            lblAviaryFXFileName.Text = aviaryFXFile.Path;

            uploadForm.Visible = false;

            List <CartonApi.FilterInfo> filters = GetFilters();

            effectOptions.Visible     = true;
            ddlFilters.DataTextField  = "FilterName";
            ddlFilters.DataValueField = "FilterID";
            ddlFilters.DataSource     = filters;
            ddlFilters.DataBind();

            ddlFilters.Items.Insert(0, new ListItem("Select an effect", "0"));
        }
        else
        {
        }
    }
    //Upload a file to AviaryFX server
    protected AviaryFXFile UploadToAviaryFX(string fileName_, byte[] fileStream_)
    {
        AviaryFXFile aviaryFXFile = this.Api.AviaryFX.Upload(fileName_, fileStream_);

        return(aviaryFXFile);
    }