即使正在使用会话,文件名也不同于DB中存在的文件名

时间:2021-10-13 00:06:47

I save a file with part of the filename as the session_id using PHP, like this:

我使用PHP将带有部分文件名的文件保存为session_id,如下所示:

$newFileName = 'upload_160687_'.session_id().'_160687_'.$originalFileName;

I then save the filename as a string using PHP in the DB and it looks like this:

然后我在DB中使用PHP将文件名保存为字符串,它看起来像这样:

upload_160687_l4eef6nqlekhbirv2pvmuf5660_160687_Apple_Microsoft_desktop1-1.jpg

However, when I look in the filesystem, that same file is saved as :

但是,当我查看文件系统时,该文件保存为:

upload_160687_41d99tblerr1tr6qq3n854jt05_160687_Apple_Microsoft_desktop1-1.jpg

You can see the difference, but what the hell is the reason????

你可以看到差异,但到底是什么原因????

Thank you for any help!

感谢您的任何帮助!

1 个解决方案

#1


Can we confirm & close the question and mark it up to the FireFox session_id quirks due to its single shared process?

我们是否可以确认并关闭问题,并将其标记为FireFox session_id怪癖,因为它的单个共享进程?

#1


Can we confirm & close the question and mark it up to the FireFox session_id quirks due to its single shared process?

我们是否可以确认并关闭问题,并将其标记为FireFox session_id怪癖,因为它的单个共享进程?