File Upload to Google Cloud Storage

QuestionsFile Upload to Google Cloud Storage
Matt asked 5 years ago

Hello, Is it possible to upload files to Google Cloud Storage?

I have set my column:
…..
$col["edittype"] = "file";
$col["upload_dir"] = 'gs://my_bucket/Images';

It seems that I need to modify the grid to upload using a special Google 'upload url':
https://cloud.google.com/appengine/docs/php/googlestorage/user_upload#createuploadurl_options

$options = [ 'gs_bucket_name' => 'my_bucket' ];
$upload_url = CloudStorageTools::createUploadUrl('/upload_handler.php', $options); //replace with phpgrid??

Any assistance is appreciated.

Thank you.

1 Answers
Abu Ghufran answered 5 years ago

Hello Matt,

I checked the feasibility but it's not currently doable.
The uploading code is very much coupled and not easy to change.

Your Answer

3 + 16 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!