I've tried Resumble.js but it doesn't work locally due Cross Origin exception.
Cross Origin refers to the browser can not execute scripts from other websites. It is caused by the browser's homology policy and is the security restriction imposed by the browser on javascript.
For example, if the protocol, domain name, port and sub-domain name of A and B pages are different, the access actions are cross-domain. For security reasons, browsers generally restrict cross-domain access, that is, cross-domain requests for resources are
not allowed.
Note: Cross-domain access restrictions are actually browser restrictions.
To solve this issue , you can try to add this code to your web.config:
Member
2 Points
4 Posts
Pause/Resume File While Uploading
Sep 18, 2019 08:37 AM|Jamal Alkelani|LINK
Hello,
I'm working on a project in which the user uploads a file into the system, and later then the file is processed and save at Database.
Is there any possible way to pause and resume the uploading process, I've tried Resumble.js but it doesn't work locally due Cross Origin exception.
Note: the file is uploaded locally using <input> tag helper.
thanks in advance.
All-Star
43751 Points
18728 Posts
Re: Pause/Resume File While Uploading
Sep 18, 2019 10:10 AM|mgebhard|LINK
Just configure the server app to allow Cross Origin requests. Otherwise, you have to write a browser plugin.
Contributor
2790 Points
794 Posts
Re: Pause/Resume File While Uploading
Sep 19, 2019 08:27 AM|Yongqing Yu|LINK
Hi Jamal,
Cross Origin refers to the browser can not execute scripts from other websites. It is caused by the browser's homology policy and is the security restriction imposed by the browser on javascript.
For example, if the protocol, domain name, port and sub-domain name of A and B pages are different, the access actions are cross-domain. For security reasons, browsers generally restrict cross-domain access, that is, cross-domain requests for resources are not allowed.
Note: Cross-domain access restrictions are actually browser restrictions.
To solve this issue , you can try to add this code to your web.config:
Best Regards,
YongQing.
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Contributor
2630 Points
1761 Posts
Re: Pause/Resume File While Uploading
Sep 20, 2019 11:48 AM|Rameezwaheed|LINK
Hi,
Please refer the following links
https://stackoverflow.com/questions/27140184/cancel-abort-and-retry-individual-file-upload-with-resumablejs
http://www.ethanjoachimeldridge.info/tech-blog/partial-file-uploads-play
http://www.resumablejs.com/
Regards,
Mark as an answer if it helps