Home > front end >  Js on file upload process still can continue to upload method after refresh
Js on file upload process still can continue to upload method after refresh

Time:11-04

Now there is a business scenario, I'm uploading a large file, the process of upload, I reload the page, I still want to continue to upload this file (is there a way I will let the local file path or save the file, after the refresh can still get it?)

CodePudding user response:

http://web.jobbole.com/88384/

CodePudding user response:

Hello, first of all to thank you for the breakpoint continuingly blog, write very well, but I now spread to half the problem is my file, I manually refresh the page refresh after I still want to continue to upload or re-upload the file before (in the user without operation), I was thinking about at the start of the user to choose file will file literatures into localstorage to avoid file is missing after refresh , but it was only when writing code to localstorage only store strings and storage capacity limit is only between 5 to 10 MB, and now my knowledge is not a solution to solve this problem, so ask you, do not know the web side to have solution for this scenario

CodePudding user response:

reference qq_28391351 reply: 3/f
hello, first of all to thank you for your this breakpoint continuingly blog, write very well, but now I'm spread to half the problem is my file I manually refresh the page, refresh after I still want to continue to upload or re-upload files before (in the user without operation), I was thinking about at the start of the user to choose file will file literatures into localstorage to avoid file is missing after refresh , but it was only when writing code to localstorage only store strings and storage capacity limit is only between 5 to 10 MB, and now my knowledge is not a solution to solve this problem, so ask you, do not know the web side to have solution for this scenario


Use html5html5 file continuingly method, must have to select the file again after refresh,

To the user without operating file continuingly can only install the browser plugin

CodePudding user response:

Back to a good understanding on web stateless
the concept
Until all refresh, refresh the page, meaning that the request to establish the transmission flow of cut and also follow the built-in objects together in the dump

CodePudding user response:

So the idea of you in some web system now is not achieve them,

Only with diameter, plug-in is a method, but limited many, not too practical,

I suggest you refer to browser built-in downloader is

Or download each new page, this will not conflict with the original page

CodePudding user response:

Ok, thank you

CodePudding user response:

reference 4 floor jslang response:
Quote: reference qq_28391351 reply: 3/f

Hello, first of all to thank you for the breakpoint continuingly blog, write very well, but I now spread to half the problem is my file, I manually refresh the page refresh after I still want to continue to upload or re-upload the file before (in the user without operation), I was thinking about at the start of the user to choose file will file literatures into localstorage to avoid file is missing after refresh , but it was only when writing code to localstorage only store strings and storage capacity limit is only between 5 to 10 MB, and now my knowledge is not a solution to solve this problem, so ask you, do not know the web side to have solution for this scenario


Use html5html5 file continuingly method, must have to select the file again after refresh,

To the user without operating file continuingly can only install the browser plugin

ok, thank you

CodePudding user response:

refer to 6th floor foren_whb response:
so the idea of you in some web system now is not achieve them,

Only with diameter, plug-in is a method, but limited many, not too practical,

I suggest you refer to browser built-in downloader is

Or download each new page, so as not to conflict with the original page
thank you brother, I'm here to upload, I know the refresh will stop all operation page (may not be able to understand the deep), now I just want to web side to have a place to cache file streams, I can recognize no

CodePudding user response:

references 9 f qq_28391351 response:
thank you brother, I'm here to upload, I know the refresh will stop all operation page (may not be able to understand the deep), now I just want to web side to have a place to cache file stream, I can recognize no


Now that the thought of this layer, might as well a bit further,,,,

Across the page cache is ok, but your page didn't, what kind of support to upload?

All the activities of web is dependent on the page

CodePudding user response:

references to the tenth floor foren_whb response:
Quote: references 9 f qq_28391351 response:
thank you brother, I'm here to upload, I know the refresh will stop all operation page (may not be able to understand the deep), now I just want to web side to have a place to cache file stream, I can recognize no


Now that the thought of this layer, might as well a bit further,,,,

Across the page cache is ok, but your page didn't, what kind of support to upload?

All the activities of web is dependent on page
eldest brother, if I file can flow into a place similar to the cache, I started to read when I was loading this page caching, design good logic, can take this file to continue to spread directly, don't need the user to trigger the ah, now the key is I don't have stored in your browser to this file stream (refresh the page I am not close the page )

CodePudding user response:

references 9 f qq_28391351 response:
Quote: refer to the sixth floor foren_whb response:

So the idea of you in some web system now is not achieve them,

Only with diameter, plug-in is a method, but limited many, not too practical,

I suggest you refer to browser built-in downloader is

Or download each new page, so as not to conflict with the original page
thank you brother, I'm here to upload, I know the refresh will stop all operation page (may not be able to understand the deep), now I just want to web side to have a place to cache file stream, I can recognize no

No, including HTML 5 also did not provide this functionality, Flash is the same, without permission, the data are in class session, you refresh all data will be lost,

Basically the problem here, the only answer also be vividly portrayed, only plug-in is the solution to this problem,

CodePudding user response:

refer to 12 floor activexme reply:
Quote: references 9 f qq_28391351 response:

Quote: refer to the sixth floor foren_whb response:

So the idea of you in some web system now is not achieve them,

Only with diameter, plug-in is a method, but limited many, not too practical,

I suggest you refer to browser built-in downloader is

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related