Fix upload dir #3812