I know it's not HTML, it's just to see if I provide the right variables to UploadFile function.
About Superglobals I have used the example code from zend framework I haven't clean the code yet.About Superglobals I just reused the example code from zend framework I havn't clean the code yet.
Posted by Frank Brückner (frosch) on 2012-06-07T14:20:40.000+0000
Which version do you use? 1.11.11?
Posted by Fabien Chambosse (fchambos) on 2012-06-07T14:36:32.000+0000
Posted by Frank Brückner (frosch) on 2012-06-07T15:37:55.000+0000
You are here in the version 1 project!
Moved the issue the version 2.
Posted by Fabien Chambosse (fchambos) on 2012-06-11T07:35:44.000+0000
I think I have found the solution.
In Zend/GData/App.php at line 609 we have :
//$headers['Content-Type'] = $contentType;
The first time when I have remove comment's symbols, it gave me an error. I haven't changed anything and I have removed comment's symbols again and now the upload function works well.
But we need to be sure $contentType isn't null, we could use this code :
if ($contentType != null){
$headers['Content-Type'] = $contentType;
}
I don't know if it's a good solution, I think if this line is comment it's for a good reason.
Posted by Maks 3w (maks3w) on 2012-06-11T13:36:55.000+0000
Hi Fabien,
There is no problem with the line commented, you can send the patch to GitHub without problems.
Regards
Posted by Maks 3w (maks3w) on 2012-06-12T18:49:54.000+0000
Comments
Posted by Frank Brückner (frosch) on 2012-06-07T08:41:01.000+0000
Hi Fabien, please reformat your text!
We also need a complete code example (short and simple) to reproduce the problem!
Posted by Fabien Chambosse (fchambos) on 2012-06-07T09:22:42.000+0000
Excuse me, I try to do my best. I hope I have reformatted as you expected.
Thx
Posted by Frank Brückner (frosch) on 2012-06-07T13:20:29.000+0000
Can you provide the output for this: {quote}
By the way: {quote}
Please read the PHP docs carefully. {quote}``` This is no HTML and no XHTML.
Posted by Fabien Chambosse (fchambos) on 2012-06-07T13:49:13.000+0000
There are echo result :
temporaryFileLocation : /tmp/phpDfBhTZ originalFileName : Petit test.doc mimeType : application/msword uri : https://docs.google.com/feeds/documents/…
I know it's not HTML, it's just to see if I provide the right variables to UploadFile function.
About Superglobals I have used the example code from zend framework I haven't clean the code yet.About Superglobals I just reused the example code from zend framework I havn't clean the code yet.
Posted by Frank Brückner (frosch) on 2012-06-07T14:20:40.000+0000
Which version do you use? 1.11.11?
Posted by Fabien Chambosse (fchambos) on 2012-06-07T14:36:32.000+0000
I use the version from this repo https://github.com/zendframework/zf2
But some of functions which I use for the connexion to Google services are comming from exemple file : ZendFramework/demos/Zend/Gdata/Docs.php
I have download this Framework on http://framework.zend.com/ : Zend Framework 2.0.0beta4 Released
Posted by Frank Brückner (frosch) on 2012-06-07T15:37:55.000+0000
You are here in the version 1 project!
Moved the issue the version 2.
Posted by Fabien Chambosse (fchambos) on 2012-06-11T07:35:44.000+0000
I think I have found the solution.
In Zend/GData/App.php at line 609 we have : //$headers['Content-Type'] = $contentType;
The first time when I have remove comment's symbols, it gave me an error. I haven't changed anything and I have removed comment's symbols again and now the upload function works well.
But we need to be sure $contentType isn't null, we could use this code :
I don't know if it's a good solution, I think if this line is comment it's for a good reason.
Posted by Maks 3w (maks3w) on 2012-06-11T13:36:55.000+0000
Hi Fabien,
There is no problem with the line commented, you can send the patch to GitHub without problems.
Regards
Posted by Maks 3w (maks3w) on 2012-06-12T18:49:54.000+0000
Fixed with https://github.com/zendframework/zf2/pull/1482