updated upload rule