Check if valid upload prior to function call