void Events_GetFilesRequestFinished(IFileHandler sender, Backload.Contracts.Eventing.IGetFilesRequestEventArgs e) { // Backload component has finished the internal GET handler method. // Results can be found in e.Param.FileStatus or sender.FileStatus IFileStatus status = e.Param.FileStatus; }
void FileUploadedStarted(object sender, Backload.Eventing.UploadStartedEventArgs e) { // Example: Prevent files of type jpeg to be processed if (e.ContentType == "image/jpeg") { // Cancel processing of the incoming file e.CancelAction = true; e.CancelMessage = "Upload canceled, File type not accepted"; } }
void Events_GetFilesRequestStarted(IFileHandler sender, Backload.Contracts.Eventing.IGetFilesRequestEventArgs e) { // Backload component has started the internal GET handler method. string searchPath = e.Param.SearchPath; }
void Events_IncomingRequestStarted(IFileHandler sender, Backload.Contracts.Eventing.IIncomingRequestEventArgs e) { // Backload environment is ready }
void handler_StoreFileRequestFinished(object sender, Backload.Eventing.Args.StoreFileRequestEventArgs e) { SessionVariables.GetFileLoader().RefreshWorkingFolder(SessionVariables.GetWorkingFolder()); RedirectToAction("Browse"); }
void handler_IncomingRequestStarted(object sender, Backload.Eventing.Args.IncomingRequestEventArgs e) { Debug.WriteLine("HAF HAF HAF"); }
void FileUploadedStarted(object sender, Backload.Eventing.UploadStartedEventArgs e) { // do something }
void Events_IncomingRequestStarted(IFileHandler sender, Backload.Contracts.Eventing.IIncomingRequestEventArgs e) { // do something }