Optionally upload files