Vasu Gadhiya

Vasu Gadhiya

  • NA
  • 429
  • 102.7k

Path Format Not Supported.

Sep 20 2013 1:39 AM
I Write Code For Download All as zip.

-----------------
string filepath = Server.MapPath("download/flag.png");

zip.AddFile(filepath, folder);

Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=DownloadedFile.zip");
Response.ContentType = "application/zip";
zip.Save(Response.OutputStream);
Response.End();
-----------------

its Completely Working
But When i give DropBox Public path as filepath
--------------------------
string filepath = "https://dl.dropboxusercontent.com/u/155062858/flag.png";
--------------------------

its Occur Error The given path's format is not supported.

Thanks in Advance.

Answers (5)