Move existing Google Cloud files into the Drupal file system

Created on 15 December 2023, about 1 year ago
Updated 15 January 2024, about 1 year ago

Hello,

I want to express my gratitude for your excellent module. Connecting to my Google Cloud storage has been a seamless experience. I do have a question that I hope you can assist me with. Previously, I had a non-Drupal website that stored all its files on Google Cloud. Now, I'm looking to migrate that data to my Drupal site. I'm wondering if you have any insights on how I can copy these files directly into the file field associated with the connection to your module, without the need for Drupal to download and re-upload them to Google Cloud. Is there a code snippet available for this purpose?

I appreciate your assistance and commend you on your outstanding work!

Best regards,
Jessica

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @pn-jes
  • 🇨🇦Canada slydevil Halifax

    I didn't build anything into the module, but I can look into as a new feature.

  • That would be great, thank you!

  • 🇨🇦Canada slydevil Halifax

    slydevil changed the visibility of the branch 3408985-move-existing-google to hidden.

  • Merge request !11.0.x → (Open) created by slydevil
  • Open on Drupal.org →
    Core: 10.2.x + Environment: PHP 8.2 & MySQL 8
    last update about 1 year ago
    Waiting for branch to pass
  • Assigned to slydevil
  • Status changed to Needs review about 1 year ago
  • Open on Drupal.org →
    Core: 10.2.x + Environment: PHP 8.2 & MySQL 8
    last update about 1 year ago
    Waiting for branch to pass
  • 🇨🇦Canada slydevil Halifax

    Added a patch - let me know if this works for you.

    Essentially, I've added a "File Sync" action to the configuration page that allows you to create managed file entries in the file_managed table for every object in the bucket. You'll need to run "Refresh Metadata" before you run "File Sync".

    Once you have the files in the file_managed table, you can use in file field or media, but you'll need a file/entity browser.

  • Open on Drupal.org →
    Core: 10.2.x + Environment: PHP 8.2 & MySQL 8
    last update about 1 year ago
    Waiting for branch to pass
Production build 0.71.5 2024