CopyPastor

Detecting plagiarism made easy.

Score: 0.8015091419219971; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-07-25
by Gauravsa

Original Post

Original - Posted on 2018-07-24
by Bakht Jamal



            
Present in both answers; Present only in the new answer; Present only in the old answer;

void SendFile() { foreach (HttpPostedFile postedFile in FileUpload1.PostedFiles) { string filename = Path.GetFileName(postedFile.FileName); string FileExtension = Path.GetExtension(postedFile.FileName); // Add a delay Thread.Sleep(100);
for(int i = 1; i <= data.Count;i++){ postedFile.SaveAs(Server.MapPath("~/InvoiceUploads/") + "Invoice " + id + "_" + i + FileExtension); } } }
Need to Change code
foreach (HttpPostedFile postedFile in FileUpload1.PostedFiles) { string filename = Path.GetFileName(postedFile.FileName); string FileExtension = Path.GetExtension(postedFile.FileName); string CurrDate = DateTime.Now.ToString("yyyy_MM_dd_HH_mm_ss");
for(int i = 1; i <= data.Count;i++) { FileUpload1.PostedFile.SaveAs(Server.MapPath("~/InvoiceUploads/") + "Invoice " + id + "_" + i + CurrDate + FileExtension); } }

        
Present in both answers; Present only in the new answer; Present only in the old answer;