Vfs streams not registered

31 views
Skip to first unread message
Message has been deleted

Koenraad Vanden Daele

unread,
Jul 21, 2017, 9:26:14 AM7/21/17
to Google App Engine

In php.ini

Registered PHP Streams

ftps, compress.zlib, file, ftp, zip, php, redirect, http, https, gs

 

I would like to use a form with input type = file to let the user upload files to Google Drive.

 

I want to read the file-content:

$data = file_get_contents($_FILES['fileToUpload']['tmp_name'])

 

This produces a warning:

Warning: file_get_contents(): Unable to find the wrapper "vfs" - did you forget to enable it when you configured PHP?

 

After this, I want to insert a file in Google Drive and change its content to $data.

 

How can this be solved or is there a work-around    

Yannick (Cloud Platform Support)

unread,
Jul 21, 2017, 2:52:00 PM7/21/17
to Google App Engine
Hello Koenraad, if this works on your local dev server but not on App Engine this sounds like a potential bug with the platform. Would you mind creating an issue on the Issue Tracker with as much reproduction information as possible so the product team can be made aware of this error?
Reply all
Reply to author
Forward
0 new messages