Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only saving new created sheet, not downloading #3

Closed
ludwigmair opened this issue Dec 26, 2013 · 1 comment
Closed

only saving new created sheet, not downloading #3

ludwigmair opened this issue Dec 26, 2013 · 1 comment
Assignees

Comments

@ludwigmair
Copy link

Hi,
first of all this is a great and very usefully package. thanks to the developer.

i have just one issue, i need to create a sheet from a php array and than to save the generated file to a server location. i have tryed following:

Excel::create('ExcelName')
->sheet('SheetName')
->with(array('data', 'data'))
->save('xls','www/uploads/xls/');

the only thing what happens is that the download and saving dialog from the browser pops up. But i just want to save the file to a predefined location not downloading the file. i have to create this file in process of a php action for a web application and do not need the download funtionality.

is there any was to prevent the download window. the user should not recognize the create action

thanks Ludwig

@MaatwebsiteSupport
Copy link
Contributor

Hey Ludwig!

You're absolutely right that the save method didn't save the file to the server.

I added a store() method which will serve your needs! (See readme)

Enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants