Home > front end > Web applications to provide an interface file download, how to return the file deleted this kind of
Web applications to provide an interface file download, how to return the file deleted this kind of
Time:09-16
Provide the file download interface, set the Content - Disposition as the attachment, the file is read flow back, for larger files, in the process of download, if take a small file cover the original file with the cp command, will lead to download directly interrupt, browsers don't complain, download is not a complete file, is there a way to avoid it, or to the browser downloader returns a file does not exist error
CodePudding user response:
A question, Why do you use the cp command overwrite the original file?