-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
failed to open stream: invalid argument #16
Comments
Hey, Could you provide the code you used and the Laravel version. |
laravel 4.1 + Frozennode\Administrator + Maatwebsite\Excel -------------------------- frozennode administrator model --------- ajax to return the file.
/**
/**
/**
/**
/**
/**
'global_actions' => array(
), ); |
I tried the Excel part of the code and it just works fine. |
I have taken the excel code out of the laravel administrator section and put it staight into the routes.php Route::get('courses',function(){ I have set full control permission on the 'exports' folder. still getting the same error. |
Are you using WAMP? |
I am using iis 7, php 5.5 and mysql 5 On 3 Feb 2014 17:27, Maatwebsite notifications@github.com wrote: Reply to this email directly or view it on GitHub: |
I'm afraid I can't help you with IIS, I only work with LAMP stacks. |
thanks for information. I will try to look into the IIS security settings to see if that is what is causing the error |
I have found a fix for it, It looks like you have not considered the windows filepath syntax when saving the excel object.
|
+1 to this... |
So, now when I try to use store() with a path, I can't use storage_path() because the front backslash in the path is stripped by the ltrim on line 538 (I'm on a Mac). How am I supposed to store? :-) Edit: What I am trying to say is that I can't use absolute paths on unix systems anymore? |
Could you try if it works now. |
It does :-) |
I get this error when trying to save csv file to a folder. The folder itself has write permission set correctly.
{"error":{"type":"ErrorException","message":"fopen(/C:\inetpub\wwwroot\learning\laravel-administrator-crud/exports/TestCSVCase.csv): failed to open stream: Invalid argument","file":"C:\inetpub\wwwroot\learning\laravel-administrator-crud\vendor\phpoffice\phpexcel\Classes\PHPExcel\Writer\CSV.php","line":111}}
The text was updated successfully, but these errors were encountered: