-
Notifications
You must be signed in to change notification settings - Fork 79
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
sliceUploadFile 方法上传文件以后,静态网站不能访问 #24
Comments
我把上传方法替换成putObject之后,就可以正常使用了 |
ok,不知道你这里是不是权限问题?putObject 是不分片的上传,如果能满足也可以。 |
我觉得不是权限问题,我并没有动过权限,而且我打开看文件的详细信息,也很明确的告诉我继承自Bucket,没有找到原因,就先用putObject吧。
还有一个事情,本来我是想用bluebird把cos转换成Promise的,结果一直告诉我this._task(大概是这样,具体是哪个忘记了) not a function,我大概看了看源代码就放弃了。
是否有打算,把Nodejs的这些回调函数转换成Promise的方式呢?
Sent from Mail for Windows 10
From: carsonxu
Sent: Monday, August 28, 2017 4:33 PM
To: tencentyun/cos-nodejs-sdk-v5
Cc: Dongdong; State change
Subject: Re: [tencentyun/cos-nodejs-sdk-v5] sliceUploadFile 方法上传文件以后,静态网站不能访问 (#24)
ok,不知道你这里是不是权限问题?putObject 是不分片的上传,如果能满足也可以。
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Promise 可能不支持,我们后续先看看不支持 bluebird 是什么原因,感谢关注。 |
好的。
Sent from Mail for Windows 10
From: carsonxu
Sent: Monday, August 28, 2017 5:05 PM
To: tencentyun/cos-nodejs-sdk-v5
Cc: Dongdong; State change
Subject: Re: [tencentyun/cos-nodejs-sdk-v5] sliceUploadFile 方法上传文件以后,静态网站不能访问 (#24)
Promise 可能不支持,我们后续先看看不支持 bluebird 是什么原因,感谢关注。
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
代码如下:
其中,uploadFileList是一个数组,遍历出的item对象如下
假设静态托管的网址为http://exp.com
上传完成后,访问这个页面(http://exp.com/tags/PHP),会报unexpectedly closed the connection.
但是如果访问http://exp.com/tags/PHP/index.html,就正常,而且我如果手动上传这个文件,就不会出现这种情况,所有的访问都是正常的
The text was updated successfully, but these errors were encountered: