Fixed
Status Update
Comments
jf...@google.com <jf...@google.com> #2
Thank you for your detailed report!
We'll take a closer look and let you know if we have any updates.
We'll take a closer look and let you know if we have any updates.
vi...@gmail.com <vi...@gmail.com> #3
We have just clarified the resumable upload protocol in our documentation here: https://developers.google.com/photos/library/guides/resumable-uploads
Note that this is slightly different from our previous protocol for resumable uploads. Please let us know if you are still having trouble following this new guide. Our apologies, but the general flow should be very similar to the previous definition.
Note that this is slightly different from our previous protocol for resumable uploads. Please let us know if you are still having trouble following this new guide. Our apologies, but the general flow should be very similar to the previous definition.
jf...@google.com <jf...@google.com> #4
Thanks for the updated documentation. I've given it a go and resumable uploads now seem to be working fine. Thanks.
00...@gmail.com <00...@gmail.com> #5
Yeah, I'm seeing.
I could confirm correct video file names.
Thank you for fixing.
I could confirm correct video file names.
Thank you for fixing.
aa...@gmail.com <aa...@gmail.com> #6
Hi, is this issue tracker still active? I had the same problem but with webp files. Instead of using the given name, it uses upload date.
jf...@google.com <jf...@google.com> #7
Re Authorization
header).
We have not been able to reproduce this issue using a webp image or animation - the filename is set as expected when specifying the fileName
attribute in a simpleMediaItem
mediaItems:batchCreate
request.
Description
For issues with the Google Photos app, please see:
-----------------------
Before filing an issue, please read and follow these instructions carefully.
First, please search through existing issues to ensure that the bug has not already been reported. You can start the search here:
If the issue has already been reported, you can click the star next to the issue number to subscribe and receive updates. We prioritize responding to the issues with the most stars. You can also comment on the issue to provide any details of your experience with it.
If your issue has not been reported, please provide all of the following:
-----------------------------------------------------------------------------------------------------------------------------
A short description of the issue:
Video file name sets into YYYY-MM-DD by force. But image file does not.
A small code sample that reliably reproduces the issue. The sample should run as-is or with minimal setup.
python3 & requests
import requests
url = '
h = {
'Content-type': 'application/octet-stream',
'Authorization': 'Bearer %s' % ACCESS_TOKEN,
'X-Goog-Upload-File-Name': 'my_video_file_name.webm',
'X-Goog-Upload-Protocol': 'raw'
}
r =
upload_token = r.text
url = '
h = {
'Content-type': 'application/json',
'Authorization': 'Bearer %s' % ACCESS_TOKEN,
}
j = {'albumId': ALBUM_ID, 'newMediaItems': ['simpleMediaItem': {'uploadToken': upload_token}]}
r =
The calls to the API that lead to the error. Include the sequence of calls, including request headers and body.
Do not include any personal information, authentication secrets, media item or album IDs.
Uploading bytes response
X-GUploader-UploadID: UPLOAD_ID
Content-Type: text/plain
Content-Length: 531
Date: Sat, 08 Sep 2018 07:04:11 GMT
Server: UploadServer
Alt-Svc: quic=":443"; ma=2592000; v="44,43,39,35"
UPLOAD_TOKEN
Creating a media item response
Content-Type: application/json; charset=UTF-8
Vary: Origin, X-Origin, Referer
Content-Encoding: gzip
Date: Sat, 08 Sep 2018 07:04:17 GMT
Server: ESF
Cache-Control: private
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Alt-Svc: quic=":443"; ma=2592000; v="44,43,39,35"
Transfer-Encoding: chunked
{
"newMediaItemResults": [
{
"uploadToken": UPLOAD_TOKEN,
"status": {
"message": "OK"
},
"mediaItem": {
"id": MEDIA_ITEM_ID,
"productUrl": PRODUCT_URL,
"mimeType": "video/mp4",
"mediaMetadata": {
"creationTime": "2018-09-08T07:04:13Z",
"width": "640",
"height": "640"
},
"filename": "my_video_file_name.webm" // Actual file name. But it will replace.
}
}
]
}
What steps will reproduce the problem?
1. Upload video file by photos API.
2. Check on web browser or get album contents after a few minutes.
What is the expected output? What do you see instead? If you see error messages, please provide them.
Uploaded file name and extension.
Please provide any additional information below.
Since Aug 31, 2018.