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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Wayne McHugh
Forum Newbie
Posts: 4
Joined: Mon Jun 23, 2003 7:12 pm

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

Post 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.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Are you having problems moving it to it's required location?

Mac
Wayne McHugh
Forum Newbie
Posts: 4
Joined: Mon Jun 23, 2003 7:12 pm

Post 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.
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

linux/unix or windows
Post Reply