Open pointbre opened 6 years ago
I got the same results.
go version go version go1.7.4 linux/386
uname -r 4.16.0-0.bpo.2-686-pae Debian GNU/Linux 9.4 (stretch)
Thank you for the test results. it seems to me that there are a couple of problems: The first due to a synchronization error, for this I used a quick solution (6e602620e357beef6f3a3e07ca83d96fcf8a89af). The second concerns the steps for uploading the image, which seems to have changed. I need to check how the browser does to upload photos to Google Photos and then make some changes.
Applied 6e60262, but still got an error:
go run main.go --upload /path/to/directory/11R.jpg 2018/07/16 07:18:16 Auth file loaded, checking validity ... 2018/07/16 07:18:17 Auth file seems to be valid 2018/07/16 07:18:17 Getting a new At token ... 2018/07/16 07:18:18 At token taken Key path not found 2018/07/16 07:18:19 [WARNING] Image uploaded but url not found 2018/07/16 07:18:19 Upload error: Error with '/home/lucas.kim/Pictures/test.jpg': Key path not found
2018/07/16 07:18:19 Done (0 files uploaded, 0 files ignored, 1 errors)
If you need my assistance, please feel free.
Hi, still go an error:
$ go run main.go --upload ./2018-07-02_8-29-23.jpg 2018/07/16 11:41:04 Auth file loaded, checking validity ... 2018/07/16 11:41:05 Auth file seems to be valid 2018/07/16 11:41:05 Getting a new At token ... 2018/07/16 11:41:06 At token taken Key path not found 2018/07/16 11:41:07 [WARNING] Image uploaded but url not found 2018/07/16 11:41:07 Upload error: Error with 'C:\Users\GAGA\go\src\github.com\simonedegiacomi\gphotosuploader\2018-07-02_8-29-23.jpg': Key path not found
2018/07/16 11:41:07 Done (0 files uploaded, 0 files ignored, 1 errors)
@ehevnn I'm seeing this too. I thought I was doing something wrong.
In the next days I should be able to check the upload procedure, sorry for the inconvenience.
I tried to update the code here: cff3249c5215d8d7c31a12369d585e6c5b3dee36. It would be perfect if you can try to see if the upload now works for you. Currently the functionality to move a photo into an album is not working, but if the basic upload works i'll update the code and then merge to the master.
Hello, Upload successful but can not get url!
$ go run simple.go Uploading to https://photos.google.com/_/upload/uploadmedia/rupio/interactive?authuser=2&upload_id=AEnB2UoFH-r2EDPWrphWnknVX_kn5AHrFsuNyWQ8DYNecIGeEIEF0IOUkfisCaeBnwGhtMgJh00eAI3fGsfvuT1UlG_I5d2wMTgxDZNPEMDw49GzVyPXJMY&file_id=000 success! image uploaded: https://lh3.googleusercontent.com/
@simonedegiacomi thanks for this tool! I hit this same error and can also confirm that using your webapp-changes
branch it works. (BTW: I initially struggled a bit to figure out what's where, so I wrote up the steps on http://blog2.vorburger.ch/2018/07/how-to-bulk-upload-old-photos-to-google.html so that I remember next time I use it... :smile: )
Upload successful but can not get url!
Not sure what you mean - which URL? For me, the photos show up on https://photos.google.com - but one, obviously, has to manually scroll down to the date which is in the EXIF of the uploaded photo.
@vorburger Thank you for writing the tutorial! The url that was not found is the url of the image, which is useful if you use the project as a library.
I have now merged the webapp-changes branch into the master 107537f8d83e2d57fda14e02188dd87ceccac4b6.
@simonedegiacomi Thanks for the update which works like a charm!
Thanks for sharing your beatiful idea.
However, gphotouploader doesn't seem to upload any files.
Image for testing
$ ls /path/to/directory 11R.jpg
Tests
-upload directory name
./github.com/simonedegiacomi/gphotosuploader/bin/gphotosuploader -upload /path/to/directory 2018/07/13 07:40:28 Auth file loaded, checking validity ... 2018/07/13 07:40:30 Auth file seems to be valid 2018/07/13 07:40:30 Getting a new At token ... 2018/07/13 07:40:31 At token taken 2018/07/13 07:40:31 Done (0 files uploaded, 0 files ignored, 0 errors)
-upload absolute path of one image
./github.com/simonedegiacomi/gphotosuploader/bin/gphotosuploader -upload /path/to/directory/11R.jpg 2018/07/13 07:40:52 Auth file loaded, checking validity ... 2018/07/13 07:40:54 Auth file seems to be valid 2018/07/13 07:40:54 Getting a new At token ... 2018/07/13 07:40:55 At token taken 2018/07/13 07:40:55 Done (0 files uploaded, 0 files ignored, 0 errors)
--upload directory name
./github.com/simonedegiacomi/gphotosuploader/bin/gphotosuploader --upload /path/to/directory 2018/07/13 07:41:15 Auth file loaded, checking validity ... 2018/07/13 07:41:17 Auth file seems to be valid 2018/07/13 07:41:17 Getting a new At token ... 2018/07/13 07:41:18 At token taken 2018/07/13 07:41:18 Done (0 files uploaded, 0 files ignored, 0 errors)
--upload absolute path of one image
./github.com/simonedegiacomi/gphotosuploader/bin/gphotosuploader --upload /path/to/directory/11R.jpg 2018/07/13 07:41:23 Auth file loaded, checking validity ... 2018/07/13 07:41:25 Auth file seems to be valid 2018/07/13 07:41:25 Getting a new At token ... 2018/07/13 07:41:26 At token taken 2018/07/13 07:41:26 Done (0 files uploaded, 0 files ignored, 0 errors)
Test environment
go version go version go1.6.2 linux/amd64
uname -r 4.13.0-43-generic
os Ubuntu 16.04
I've tested with main.go but it had same result like above.