안녕하세요. 모든 경로에서 파일을 복사하여 도메인에 복사 할 수 있습니다. 다음과 같이 시도했지만 예외가 uri formats are not supported
으로 표시됩니다. 파일을 복사하려면파일을 얻은 경로에서 도메인으로 복사
string filePath = "D:\\Folder\\filename.jpg";
FileInfo fileInfo = new FileInfo(filePath);
if (fileInfo.Exists)
{
path = "http://WWW.somedomain.com";
string temppath = path + "/Temp" + "/" + fileInfo.Name;
if (!File.Exists(temppath))
{
var uri = new Uri(temppath);
File.Copy(filePath, uri.AbsoluteUri);
}
안녕 Pawan 감사합니다,하지만 내 요구 사항이 당신이 말한 따라 내가 파일을 확인할 수있는 방법 – demouser