[google-appengine] Re: PHP script can't read file from vfs:// (in memory file system) created by my other PHP script

2015-07-09 Thread Stuart Langley
Hey Alex, I'm on vacation, I'll try and work out some sample code for you when I get back. Cheers On Tuesday, 7 July 2015 20:42:38 UTC+10, Alex Kerr wrote: > > Thanks Stuart - OK, just trying to understand this - so the user stream > wrapper that Google have implemented is what gives the gs://

[google-appengine] Re: PHP script can't read file from vfs:// (in memory file system) created by my other PHP script

2015-07-07 Thread Alex Kerr
Thanks Stuart - OK, just trying to understand this - so the user stream wrapper that Google have implemented is what gives the gs:// or vfs:// access? So if I create the multipart form manually I could get around that - can you give any tips or pointers how I'd get started with doing that pleas

[google-appengine] Re: PHP script can't read file from vfs:// (in memory file system) created by my other PHP script

2015-07-06 Thread Stuart Langley
Hi Alex, I don't think cURL will read a file from a user stream wrapper - so you're kind of stuck. Can you create the multipart form manually? On Tuesday, 7 July 2015 03:39:43 UTC+10, Alex Kerr wrote: > > Sorry for a 3rd reply, but just to confirm my code all works fine when the > image to be

[google-appengine] Re: PHP script can't read file from vfs:// (in memory file system) created by my other PHP script

2015-07-06 Thread Alex Kerr
Sorry for a 3rd reply, but just to confirm my code all works fine when the image to be uploaded is a static file uploaded with my app, including if the image is in a subfolder. So it appears curl only has a problem with files on vfs:// or gfs:// (unfortunately this is critical to my app as I ne

[google-appengine] Re: PHP script can't read file from vfs:// (in memory file system) created by my other PHP script

2015-07-06 Thread Alex Kerr
Also further to my last reply, tried this all with GCS (accessed via gs:// URL) and it doesn't work either, exactly the same error from CURL. I also tried changing the 'source' field in the CURLFile request to 'url' but that was the same again. Looks like curl can't read from either vfs or gcs?

[google-appengine] Re: PHP script can't read file from vfs:// (in memory file system) created by my other PHP script

2015-07-06 Thread Alex Kerr
Thanks Stuart. However, I've looked into this and confirmed that's not the problem. At the point the exception is thrown in the FB SDK (this is after CURL has tried to post and returned an error), I added some code in to check the temp file to be posted still exists and can be read (by file_get

[google-appengine] Re: PHP script can't read file from vfs:// (in memory file system) created by my other PHP script

2015-07-05 Thread Stuart Langley
Files that you write to vfs are removed at the end of the request. If you need the files to persist between requests you'll need to write or move the files from vfs to gs. On Sunday, 5 July 2015 04:04:11 UTC+10, Alex Kerr wrote: > > Hi, > > I've got my main PHP script writing an image file out t