Skip to content

Feature Request: Auto-share uploaded media and retrieve public links #47

@Deepajothika

Description

@Deepajothika

Feature Request

I would like to request a feature that automatically shares uploaded media publicly and returns the public link for each uploaded file.

Use Case

This would be useful for scenarios where users need to:

  • Automatically make uploaded photos accessible via public links
  • Integrate uploaded media into external applications or websites
  • Share media programmatically without manual intervention through the Google Photos web interface

Proposed Implementation

The feature could work in the following ways:

For Python Client:

from gpmc import Client

client = Client(auth_data=auth_data)
output = client.upload(target=path, share_publicly=True, return_public_link=True)

print(output)
# Expected output format:
# {
#     "/absolute/path/to/media_file.jpg": {
#         "media_key": "google_photos_media_key",
#         "public_link": "https://photos.app.goo.gl/xxxxx"
#     }
# }

For CLI:

gpmc "/path/to/media_file.jpg" --share-public --auth_data "..."

Additional Considerations

  • This could be an optional flag/parameter (disabled by default) to maintain current behavior
  • Could optionally support batch sharing for multiple files

Alternatives Considered

Currently, users would need to manually share each photo through the Google Photos web interface after upload, which is time-consuming for bulk uploads.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions