react
react copied to clipboard
Abort file upload using FileService and Progress bar not showing while uploading
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.
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 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.
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 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
.
- One with
FileService
- Without
FileService
Thank you in advance.
Hello @Anandks1993,
We are still not able to replicate this on our side when using Our FileService.
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,
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.
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!