DragDrop Files

Answered
0
0

Hi team.

I have implemented a DragDrop Files on my application as explaned in your documentation and that’s work fine.

if I understand correctly, the DragDrop event is fired when all files are been upload on server as stream.
It’s possible to get the progress event during the upload like progress event present in the upload control?

I need, for big files or slow connections to monitoring the byte transfer from client to server.

Thank in advance

 

  • You must to post comments
Best Answer
0
0

Hi Angelo,

we added a progress event that can now be used like this:

private void PictureBox_WidgetEvent(object sender, WidgetEventArgs e)
{
	if (e.Type=="progress")
	{
		int total = e.Data.total;
		int loaded = e.Data.loaded;
	}
}

Best regards
Frank

 

  • You must to post comments
0
0

Hi Frank

In the next few days I will install the latest version of Wisej 2.5 and try.

Thanks

  • You must to post comments
0
0

Hi Paul

Thanks for the reply.

As you can understand if I drop a file that takes a long time to be loaded, in the user interface I have only the wait cursor available to indicate that I have to wait for the upload to finish.

  • Paul
    • Paul
    • Oct 20, 2021 - 3:30 pm
    Hi Angelo We understand that and add internally as an improvement to made in future releases. Regards
  • You must to post comments
0
0

Hi Angelo

Sorry for the late.

I attached your sample with a small fixes in the datagridview. This has nugget reference for last 2.5 beta build. You can change it for the version that are using

Was nedded a column and a line of code for add a new row on it to display the name of file dragged.

The Progress event is only available for the Upload control.

Drag and drop of a file in Wisej can work with any control as a target then AllowDrop is true and there is no Progress event for that

HTH

Paul

  • You must to post comments
0
0

Hi Paul

I have attached an example to better explain my question.

As you can see I have added two ways to upload the file.

If the upload is done with the Wisej.Web.Upload control, I can show the transferred progress byte using the Upload1.Progress event.

If the upload is done by drag and drop a file on the datagridview control, I don’t know how to show the transferred progress byte.

I hope I was clearer and thanks.

 

  • You must to post comments
0
0

Hi Angelo

Could you please, post a little runnable case, to check what is wrong?

Regards

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.