-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
文件夹上传问题 #46
Comments
有文件名吗, 可能是某些文件名带了奇怪的字符, 我这边上传文件夹暂时没发现问题 |
画师10831084 现在本机上传好像没多大问题, 服务器[香港,带宽30M]上传就出现上述问题, 现在是我是循环上传单个文件直到成功, 但是传这几个得花40多分钟. 问下这是文件名问题, 还是ip方面的问题呢? |
请参见: |
好的了解了, 现在准备上传时混淆文件名, 附带一个文件名恢复小程序 |
这个事情可以交给api处理, 如果需要上传大文件的话, 可以选择绕过官方限制 |
上传文件夹, 蓝奏盘中确实生成了文件夹, 但是只上传了一个文件后报错. (文件夹中文件全部<100M)
Traceback (most recent call last):
lzy.upload_dir(dirname)
File "/home/ubuntu/.local/lib/python3.8/site-packages/lanzou/api/core.py", line 915, in upload_dir
code = self.upload_file(file_path, dir_id, callback=callback, uploaded_handler=uploaded_handler)
File "/home/ubuntu/.local/lib/python3.8/site-packages/lanzou/api/core.py", line 870, in upload_file
return self._upload_small_file(file_path, folder_id, callback=callback, uploaded_handler=uploaded_handler)
File "/home/ubuntu/.local/lib/python3.8/site-packages/lanzou/api/core.py", line 766, in _upload_small_file
result = self._post('https://pc.woozooo.com/fileup.php', data=monitor, headers=tmp_header, timeout=3600)
File "/home/ubuntu/.local/lib/python3.8/site-packages/lanzou/api/core.py", line 72, in _post
return self._session.post(url, data, verify=False, **kwargs)
File "/home/ubuntu/.local/lib/python3.8/site-packages/requests/sessions.py", line 578, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/home/ubuntu/.local/lib/python3.8/site-packages/requests_cache/core.py", line 141, in request
main_key = self.cache.create_key(response.request)
File "/home/ubuntu/.local/lib/python3.8/site-packages/requests_cache/backends/base.py", line 227, in create_key
key.update(_to_bytes(body))
File "/home/ubuntu/.local/lib/python3.8/site-packages/requests_cache/backends/base.py", line 259, in _to_bytes
return bytes(s, encoding)
TypeError: encoding without a string argument
The text was updated successfully, but these errors were encountered: