Fix upload of private files