mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 17:56:52 +02:00
[feature/plupload/integration] Integration of Plupload
This commit is a highly-refactored and up-to-date version of Fyorl's work which was part of his Google Summer of Code 2012 project "Attachment Improvements". PHPBB3-10929
This commit is contained in:
@@ -22,6 +22,25 @@ class phpbb_functional_fileupload_form_test extends phpbb_functional_test_case
|
||||
$this->login();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$iterator = new DirectoryIterator(__DIR__ . '/../../phpBB/files/');
|
||||
foreach ($iterator as $fileinfo)
|
||||
{
|
||||
if (
|
||||
$fileinfo->isDot()
|
||||
|| $fileinfo->isDir()
|
||||
|| $fileinfo->getFilename() === 'index.htm'
|
||||
|| $fileinfo->getFilename() === '.htaccess'
|
||||
)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
unlink($fileinfo->getPathname());
|
||||
}
|
||||
}
|
||||
|
||||
private function upload_file($filename, $mimetype)
|
||||
{
|
||||
$file = array(
|
||||
|
Reference in New Issue
Block a user