stephenmcd / filebrowser-safe

File manager for Mezzanine
Other
41 stars 104 forks source link

Fix issues with old methods in GoogleStorageMixin #126

Closed TysonRV closed 5 years ago

TysonRV commented 5 years ago

The reason of this PR, is that I was encountering problems using the mixin to upload images to Google Cloud Storage from a RichText source. It looks like the bucket changed in GCS and doesn't support the method list(), so I used listdir in the same way that it's done for the S3 mixin. The _clean_name method was nowhere to be found, so I just replicate its behaviour to make it work.

Tested using: