开发者

How does mediawiki upload files to server

I just found out that mediawiki does not use move_uploaded_fileDocs. So how does mediawiki upload file to the dat开发者_开发技巧abase?


There is an incredibly complex system of filesystem classes in the includes/upload and includes/filerepo folders. The relevant line, so far as I can tell, is line 216 of includes/filerepo/FSRepo.php:

if ( !rename( $srcPath, $dstPath ) ) {

If you really want to work out how the system works, I suggest you start with includes/upload/UploadFromFile.php and work your way through the network of objects. If you want your sanity, I suggest you don't.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜