Hi all, I just found out that mediawiki does not use move_uploaded_file. So how does mediawiki upload file to the database. I looked at the source code but could not understand much. Kind of urgent. Any Help is appreciated!
+2
A:
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.
lonesomeday
2010-10-06 12:01:13
Great.. Thanks.. I din find the answer.. Just that I forgot to post to it here :)
Karthick
2010-10-07 00:44:33