uploader function edited

detect datatypes