我正在使用picasagdata python client library将照片和视频上传到picasa。该代码适用于小照片和视频。但如果视频大于100 MB,则会出现以下错误:
photo = gd_client.InsertPhotoSimple( album_url, title, title, file, content_type=mime)
File "/usr/local/lib/python2.7/dist-packages/gdata/photos/service.py", line 470, in InsertPhotoSimple
content_type)
File "/usr/local/lib/python2.7/dist-packages/gdata/photos/service.py", line 428, in InsertPhoto
raise GooglePhotosException(e.args[0])
在gdata.photos.service.googlephotoexception:(413,'请求实体太大','视频文件大小超过104857600')
实际上,服务器拒绝大于100MB的文件。然而,this documentation表示文件大小限制实际上是1GB。在
那么,为什么我会得到这个错误呢?有人看到这个吗?在
api根据documentation设置的限制是100MB。你发现的限制是在他们的网站上,他们对如何访问他们的服务和其他人如何访问他们的服务有不同的规则。在
相关问题 更多 >
编程相关推荐