Home > front end >  A direct download link click on the download link not preview, for advice
A direct download link click on the download link not preview, for advice

Time:12-02

Download links for oss, not configured cross-domain
1. A link to add the download invalid
2. Get request cross-domain
Seek treatment

CodePudding user response:

Don't understand what's your problem

CodePudding user response:

reference 1st floor qq_41497756 response:
don't understand what your problem is

Just like the normal download link window. The location. Href=https://bbs.csdn.net/topics/url; Url or will jump straight to download;
But the links did not handle this kind of writing is to jump directly to the link to become a preview mode, how processing into the front not jump direct links to download the file

CodePudding user response:

Can let the back-end cooperate returns the file, and then build a label download js

CodePudding user response:

refer to the third floor and Plus response:
can accommodate the back-end to return file streams, js again build a label download

Front end can handle or must the back-end returns the text

CodePudding user response:

Then you need to document flow, the default browser to identify what video preview picture; To a browser can not know

CodePudding user response:

click
  • Related