edited uploads logic