adding upload to attribute