Page 1 of 1

Where do temp files in form-based upload get created?

Posted: Tue Dec 16, 2003 12:47 am
by Wayne McHugh
I am hoping this is a simple thing, but I can't locate the file that is being created by my upload form. The evidence is that it is being created ... the evidence coming from phpinfo() in the posting php script ...

_FILES["thefile"] Array
(
[name] => Array
(
[0] => map.jpg
)

[type] => Array
(
[0] => image/pjpeg
)

[tmp_name] => Array
(
[0] => ./\phpC7.tmp
)

[error] => Array
(
[0] => 0
)

[size] => Array
(
[0] => 47607
)

)

It is this that makes me believe that the file being created (error = 0, and other details are set). I'm unsure what make of ./\phpC7.tmp (the /\ part) in the temp filename.

Anyone who can let me know, thanks.

Wayne.

Posted: Tue Dec 16, 2003 3:02 am
by twigletmac
Are you having problems moving it to it's required location?

Mac

Posted: Tue Dec 16, 2003 4:10 am
by Wayne McHugh
Yes, I've been attempting the standard upload/move. The problem is it's tricky to work out which bit isn't working, the upload or the move.

I have just sorted out my problem. It was the windows catch that the destination can't be relative path. What I'm about to discover (I suspect) is that under Unix it must be a relative path to avoid permissions problems. Anyway, my present problem is overcome for which I am thankful.

Wayne.

Posted: Tue Dec 16, 2003 11:38 am
by dull1554
linux/unix or windows