shpasser / GaeSupportL5

Google App Engine Support package for Laravel 5
MIT License
160 stars 27 forks source link

Getting files from CloudStorage by Storage class #29

Closed moston closed 9 years ago

moston commented 9 years ago

Hi,

I have a problem with getting files by Storage class from Laravel.

Storage::disk('gae')->files('uploads/')

or

Storage::disk('gae')->get($path)

don't work and I'm getting FileNotFoundException. Am I doing something wrong ?

shpasser commented 9 years ago

While investigating the issue I found a bug preventing the filesystem from writing data to gae disk. Nevertheless the operations you perform should work properly as long as file storage/app/{$path} and directory storage/app/uploads really exist in your GCS bucket. I'm going to fix the put/write issue shortly, so you will be able to use gae to upload files too. Please notice that if your directory contains only other directories, but no regular files, files() function will return an empty list. For now, in order for your calls to succeed you could create directories and upload files to your GCS bucket using Google Developers Console.

shpasser commented 9 years ago

Please pull the newest version (1.4.1) via Composer.

shpasser commented 9 years ago

Please pull the newest version (1.4.2) via Composer(update to support disk root listing.)

moston commented 9 years ago

Great :) It's working :)