react icon indicating copy to clipboard operation
react copied to clipboard

Abort file upload using FileService and Progress bar not showing while uploading

Open Anandks1993 opened this issue 4 years ago • 7 comments

Hi,

I am using FileService for File component to upload files using own storage. I am able to upload file and download file without any hassle, but I want to abort the file upload when user clicks the remove file when the file is getting uploaded. Is there any way to achieve this?

One more thing, progress bar is not showing on upload, it stuck on Starting Upload text. Any idea how to start showing the progress bar?

Thank you in advance.

Anandks1993 avatar Jan 12 '21 10:01 Anandks1993

Hello @Anandks1993,

We do not have any way of removing a file in the process of getting uploaded. This would be a new feature request. As for the process bar being struck doing the upload issue, can you provide a JSFIddle of the issue taking place?

Thank you.

wag110894 avatar Jan 14 '21 19:01 wag110894

@wag110894 I just want to cancel the file upload API in the background when user clicks X button after the filename. In the fiddle example I could see we can stop the file upload but with FileService it isn't happening. So with FileService it would be a new feature to achieve this?

For the progress bar being stuck here is the sandbox link https://codesandbox.io/s/react-formio-forked-op37p The bar got stuck with Starting upload.

Thank you in advance.

Anandks1993 avatar Jan 18 '21 04:01 Anandks1993

Hello @Anandks1993,

That is correct. Canceling the file upload when the form is loading would be a new feature.

As for the progress bar being stuck, we are not able to replicate this using your sandbox. Can you provide a video?

wag110894 avatar Jan 18 '21 14:01 wag110894

@wag110894 Thank you for your response. Here I will post 2 videos, one which uses FileService and the one which doesn't use FileService. With FileService the progress indicator is not showing up where as it shows without using FileService.

  1. One with FileService

upload-issue

  1. Without FileService

upload-working

Thank you in advance.

Anandks1993 avatar Jan 18 '21 15:01 Anandks1993

Hello @Anandks1993,

We are still not able to replicate this on our side when using Our FileService.

wag110894 avatar Jan 22 '21 22:01 wag110894

Hi @wag110894 Oh I see, For me the issue still exists, I don't know what mistake I have done, Is there a working sample of FileService (fiddle of sandbox) with progress bar? That would be helpful for me to see what exactly the issue is.

Thank you in advance.

Anandks1993 avatar Jan 23 '21 08:01 Anandks1993

@Anandks1993,

We do offer Support Packages that are for training, support or development services. The hours can be used in one-hour increments at your convenience over a 90 day period. We will assign one of our senior developers to work directly with you in online sessions. Please contact [email protected] if you are interested in a support package.

Thank you.

wag110894 avatar Jan 25 '21 14:01 wag110894

I am closing the issue as it was created too long ago and there is no new comments here. If the issue is not resolved, please reopen it. Thanks!

TanyaGashtold avatar Aug 31 '23 13:08 TanyaGashtold