lsky-org / lsky-pro

☁️兰空图床(Lsky Pro) - Your photo album on the cloud.
https://www.lsky.pro
GNU General Public License v3.0
4.16k stars 612 forks source link

上传图片后报错code32 #306

Closed GuuGuai closed 2 years ago

GuuGuai commented 2 years ago

windows server 2012R2 宝塔windows面板 php7.1 mysql5.5.62 nginx1.21.1 报错如下 rename(C:\Temp\php53A8.tmp,2022-02-21/2022-02-21.jpg): ��һ���������ʹ�ô��ļ��������޷����ʡ� (code: 32)

wisp-x commented 2 years ago

看起来应该是没有权限重命名。

GuuGuai commented 2 years ago

看起来应该是没有权限重命名。

有什么解决办法吗

wisp-x commented 2 years ago

https://github.com/wisp-x/lsky-pro/blob/e158be2ce265ff09049b7ac0678b7e4d078a601a/extend/strategy/driver/Local.php#L64 把这一行的 rename 改成 copy 试一下。

GuuGuai commented 2 years ago

https://github.com/wisp-x/lsky-pro/blob/e158be2ce265ff09049b7ac0678b7e4d078a601a/extend/strategy/driver/Local.php#L64

把这一行的 rename 改成 copy 试一下。 可以了,感谢