Transferred from: http://zengrong.net/post/1746.htm
This site is reproduced in addition to the article, are the original site or translation.
The article welcomes all forms of reprint, but please 18 years of age and above the reprint of the source of the article, respect for my labor, but also respect your IQ;
This site part of the original and translated articles to provide markdown format source code, welcome to use the source of the article reproduced;
This blog use wpcmd
Simple implementation of a tag download link, a tag download link
You only need to direct the href path to the file path. Note that the new download attribute in HTML5 allows you to specify a new file name for the browser to download
is, through the Linux sendfile feature, let Nginx directly from the real address to read the file and send to the user, and can also be renamed.What needs to be done is to write the following header in the download.php: Header ("content-disposition:attachment; filename= rename filename. txt "); header ("Content-type:application/octet-stream");header (' X-accel-redirect:m00/00/00/fwaaavgmateaafjtaaaabbw-xbm368.txt ');//fdfs file pathheader ("X-accel-b
Asp. Net MVC file management Demo (File display, upload, download, compression, file rename, etc.), mvcdemo
Previously, I wanted to create a file management page. After reading a lot of materials, I finally completed a file management Demo Based on Asp.net MVC. The interface is as follows.
I. Functions and Related Technologies
The file management Demo is based on Asp. net mvc, mainly used to browse the fil
This array, how to package the doc file download, to rename the doc file.
$qrList = Array ( Array ' Data ' =>array ( ' ID ' =>1, ' Source ' = ' qrcodesale1kkk ',' title ' = ' Large amount of ridge ',' File ' = '/file/20150212/201576.doc ' ), ), Array ' Data ' =>array ( ' ID ' =>2, ' Source ' = ' qrcode ',' title ' and ' A keynote spe
, to get all the contents of the server response Web_reg_save_param ("Fcontent", "lb=", "rb=", "Search=body", last); /* Download Help file */ Lr_start_transaction ("Export file"); Request to send an export file Web_url ("Downloadservlet", "Url= http://wenku.baidu.com/view/9052ad6c011ca300a6c39060.html", "resource=1", " Reccontenttype=application/x-msdownload "," referer= "," Snapshot=t41.inf ", last); Lr_convert_string_encoding (Lr_eval_string (
File download, through the
Today, I used another one, first of all, the demand: 1. The file server and the system are not on the same server, so need to use the network address to download;
2. In order to avoid duplicate files when uploading, use UUID to generate filename, real file name stored in database;
3. All files can only be downloaded and cannot be opened directly on the browser.
According to the c
additional files. When Internet Explorer receives the header, it will activate the File Download Dialog Box, and its file clearly box will automatically fill in the file name specified in the header. This is caused by design. You cannot use this function to store documents on your computer, instead of asking users about the storage location. Of course, this situation does not exist in ie9, and ie9 will be automatically saved in the folder set at the
Because a tag in the HTML link picture will be recognized and open to the Web page if you want to download this image, you need to connect to the background to read the file and generate a header information download. However, you can first add a download attribute to the a tag
Usually when we write the project will encounter upload download what, after uploading the file will be stored in the file path to the database in order to download, if you want not to download directly in the background, you can take the file path to a tag attribute href;This will
Scene: Do download QR code function, use a tag +download property, after use for a period of time, suddenly there is a data download when the file format is not recognized, was previously PNG downloadCause: Because download= "filename" here does not set a suffix, guess a
Method
1. Because there is no rewrite module like PHP, You need to download the IIS rewrite module:
Http://www.jb51.net/softs/6192.html2. decompress the compressed package to any directory (for example, c: \ rewrite ). Then open "Control Panel"-"Administrative Tools"-"IIS Information Service Manager"-"website"-"Your Site"-" Attribute ". Click "add" in the "ISAPI filter" item, and enter the Filter Name in rewrite. the executable file is c: \ rewrit
unfortunately the video tag does not support this feature. Video can only be downloaded via HTTP at this time.Https://tools.ietf.org/html/draft-pantos-http-live-streaming-19
Abstract This document describes a protocol for transferring unbounded streams of multimedia data. IT specifies the data format of the files and the actions to being taken by the server (sender) and the Clients (rece Ivers) of the streams. It describes version
Method
1. Because there is no rewrite module like PHP, you need to download the IIS rewrite module:
Http://www.jb51.net/softs/6192.html
2, extract the compressed package to any directory, (such as: C:\Rewrite). Then open Control Panel-Administrative Tools-IIS Information Services Manager-Web site-Your site
"-Properties". In the ISAPI filter entry, click Add, the filter name is filled in Rewrite, and the executable file is C:\Rewrite\Rewrite.dll;
3,
The down attribute in the a tag HTML5 the new property, which instructs the browser to download the URL instead of navigating to the URL, prompting the user to save it as a local file. Currently, this property has the following compatibility:Specific code implementation:1 /*2 main principle: Using the download attribute of a
When writing a Web project, there is a separate introduction to the introduction page, only this one short video so do not use any video components, so the use of native video tags to solve the problem.Although the introduction video is non-paid, but also do not want to have a download button or can save the video as, so find a can not appear to download the function of the method, take notes.Want to hide t
: This article mainly introduces the dedecms | software download page tag. if you are interested in the PHP Tutorial, refer to it.
Upload date:[Field: pubdate function = "GetDateTimeMK (@ me)"/]
Recommendation level:[Field: softrank function = 'getrankstar (@ me) '/]
Software language:[Field: language/]
Browsing times:[Field: click/]
Software type:{Dede: field. softtype /}
Authorization method:{Dede: f
. Limit
Less than how many sales records are not displayed
-
Selllog. display. listnum
Number of entries displayed
-
Goodsbn. display. Switch
Enable product ID?
-
Storeplace. display. Switch
Use Goods space?
-
Gallery. display. listnum
Number of entries displayed in the search list
-
Gallery. display. Grid. colnum
Number of lines displayed on the search window page
-
Plugi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.