Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

How to know that the upload multiple of the files is complete?

$
0
0

 I am using this code:

protected void FileUploader_FileReceived(object sender, FileReceivedEventArgs e) {

FileUploader1.UploadButtonOverUrl.ToString(); FileUploader1.UploadButtonPressedUrl.ToString();

FileUploader1.UploadDataFieldName.ToString(); string ext = e.File.FileName.Substring(e.File.FileName.LastIndexOf('.')).Replace(".",""); string name_file = "" ; if (_ChkVersion.Checked) { name_file = _drpNomPJ.SelectedItem.Text.ToString(); RappelReunion.AddNotifDoc(name_file, _lbReunionID.Text, "Added", _etatreuninvalue.Text);

} else { name_file = e.File.FileName;

}

if (ext_ok(ext)) { string name = name_file.Split('.')[0]; string name_id = name + "-" + _lbReunionID.Text.ToString() + "." + ext; ext = ext.Replace(".", ""); HttpPostedFile uploadfile = e.File; SPUser _user = SPContext.Current.Web.CurrentUser; int id = Convert.ToInt32(_lbReunionID.Text.ToString().Trim()); UtReunion.UploadReunionPJ(uploadfile, id, _user, "PieceJointReunion", name, ext, name_id, "ok");

} else { ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "alertscript", "alert(' erreur');", true);

}

}

i want to know if the upload of the files is complete or not??


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>