ad_page_contract {

    User directory.
    
    @author SriHarsha Chintalapani (sriharsha.ch@azri.biz)

} {
    file_id:integer,optional,notnull
    upload_file:trim,optional
    upload_file.tmpfile:tmpfile,optional
} -properties {
    page_title:onevalue
    context_bar:onevalue
} 

set context_bar {} 
set page_title "Themes"
#set file_id [open ${upload_file.tmpfile} r]
 ad_form -name theme_form -html { enctype multipart/form-data }   -form {
    file_id:key
   {upload_file:file(file) {label "Upload Theme"}  }
} -on_submit {
   skin_upload -upload_file $upload_file
    ad_returnredirect "theme-uploaded"
  
 } 

