adding upload directive