Index: trunk/phase3/includes/upload/UploadFromFile.php |
— | — | @@ -20,7 +20,12 @@ |
21 | 21 | $request->getFileSize( 'wpUploadFile' ) |
22 | 22 | ); |
23 | 23 | } |
24 | | - |
| 24 | + /** |
| 25 | + * Entry point for upload from file. |
| 26 | + */ |
| 27 | + function initialize( $name, $tempPath, $fileSize ) { |
| 28 | + return $this->initializePathInfo( $name, $tempPath, $fileSize ); |
| 29 | + } |
25 | 30 | static function isValidRequest( $request ) { |
26 | 31 | return (bool)$request->getFileTempName( 'wpUploadFile' ); |
27 | 32 | } |