Questions about saving and downloading excel files exported by phpexcel
Source: Internet
Author: User
The excel file exported from phpexcel is saved and downloaded. the excel file exported from phpexcel is automatically saved in the project folder. you cannot download the exported file to a specified location through the webpage. The server cannot actively download data from the browser or specify the storage location. Users can only access this excel file and save and download the excel files exported by phpexcel.
The excel files exported by phpexcel automatically save the project folder. how can I download exported files to a specified location through the webpage?
------ Solution --------------------
There is no way to do this. The server cannot actively download data from the browser or specify the storage location.
Users can only access this excel file and manually specify the storage location.
------ Solution --------------------
$ ObjWriter-> save ('php: // output'); // go to the browser
$ ObjWriter-> save ($ filename); // This will be saved directly to the folder without prompting for download.
So you need to select the first method ..
------ Solution --------------------
Http://www.henshiyong.com/archives/312.html
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service