Loading...
 
Architecture / Installation

Architecture / Installation


upload image problem

posts: 61

have an old instalation tiki wiki 1.9.10 which works fine for more than 7 years :-)

but now i have an upload problem.

when i look into the tiki-upload_image.php i see the loop 3 to 8 for the image files.

to see what happens i added this:

$smarty->assign('msg', 'XXX:'.$_FILES'userfile3''tmp_name'. ' === '.filesize($_FILES'userfile3''tmp_name'));
$smarty->display("error.tpl");
die;

the output is this:
XXX:/.vsvar/tmp/phpqMrVTV === 0

so the file size is 0 which is not what i want. but interesting is the tmp_name
/.vsvar/tmp/phpqMrVTV
which i did not expect. can this be a correct upload dir?
and where is this upload dir created?

thanks

posts: 61

drilling down i see this in the initlib.php:


function tempdir() {
static $tempdir;
if (!$tempdir) {
$tempfile = tempnam(false,'');
$tempdir = dirname($tempfile);
@unlink($tempfile);
}
return $tempdir;
}

could it bee that tempnam is changed??


posts: 1630 Canada

heh 1.9.10! Vintage!

Maybe your hosting company made a change?

Can I interest you in doing a test upgrade to Tiki6 LTS? :-)


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting