upload uses right part class based on input path