clone from dpp's ajax_upload starting_point project