Home > Net >  Aspx appear an error does not support the format of a given path
Aspx appear an error does not support the format of a given path

Time:09-27

Aspx page:
Cs file:
String time1=DateTime. Now. ToString (" yyyyMMdd ");
String savePath="/192.168.1.16:9002/abcvideo/" + time1.
Videoupload. PostedFile. SaveAs (savePath + videoupload FileName);

CodePudding user response:

192.168.1.16:9002 removed

CodePudding user response:

String savePath="~/abcvideo/" + time1.

CodePudding user response:

I want to upload this file. 16 above
  •  Tags:  
  • C#
  • Related