You are here: Re: uploaded files - if they already exist? « PHP Programming Language « IT news, forums, messages
Re: uploaded files - if they already exist?

Posted by Erwin Moller on 01/09/08 12:08

jodleren wrote:
> Hi!
>
> When a file is uploaded, using <input type=file>, I get it as a temp-
> file.
> Will it stay there, so I can check the user whether to overwrite an
> existing file?

No, they won't stay there.
If you do not use move_uploaded_file(), the tempfile will be deleted
when the scripts ends.

And the filenames are unique as JanWillem described, so you don't have
to worry about that.

So it is up to you (your script) to move the temp file from the temp dir
to a better place.

Regards,
Erwin Moller

>
> WBR
> Sonnich

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация