Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Conversation

@zenitraM
Copy link
Contributor

Thanks for gpup @int128! It seems to be the only working way to properly more or less automate uploads to Google Photos uninteractively.

However, files uploaded with gpup do not keep their filenames and rather get renamed to YYYY-MM-DD.JPG/RW2 (you can see this in Picture info or if you have the option to show uploaded files in Google Drive).

It seems this was an issue with the API on Google's side (since the filename was sent as X-Goog-Upload-File-Name already) that was fixed on https://issuetracker.google.com/issues/79757390.
However it does not work unless you also send the X-Goog-Upload-Protocol with a raw value, which this PR adds.

This fixes the issue, however it seems to have the gotcha that images that were previously already uploaded with gpup without filenames will get duplicated when uploaded with filenames (maybe due to this different metadata).
Haven't been able to test this behavior much, so open to suggestions on that front (maybe worth adding to the README/changelog, or having a flag to disable filename uploading?).

@int128 int128 merged commit 4546345 into int128:master Aug 22, 2018
@int128
Copy link
Owner

int128 commented Aug 22, 2018

Thank you for resolving this issue!

@int128
Copy link
Owner

int128 commented Sep 15, 2018

FYI, this does not work for videos at this time.
https://issuetracker.google.com/issues/114462217

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants