Re: Uploaded File OverWriting Old File
| From: | Nick Wilson | Date: | Sat, 11 May 2002 11:03:22 +0000 |
| Subject: | Re: Uploaded File OverWriting Old File | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97084@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* and then Thomas Edison Jr. declared....
> Glory & Power!
>
> I'm using the following code now... the Error is gone,
> but it's still overwriting the old file. It's not
> changing the name.. not doing anything, just uploading
> this new file and replacing the old one..
>
Well, I don't see any thing in your code that denotes the directory the
images are going in? The idea is to check if 'path/to/img/img.jpg'
exists and if so, name the upload img to something else.
I also don't see anything in you php about the 'tmp_name' etc? are you
sure you understand how to upload images? there is a very good section
in the manual on file uploads. (i just learnt it myself for a project)
- --
Nick Wilson // www.explodingnet.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
iD8DBQE83Pp5HpvrrTa6L5oRAhYDAJ4ibvcPhX55WJ3HTtiz3rT20qK5TACfaEJ5
LuJKsZCN8TFmUQJFIzVMM14=
=meFO
-----END PGP SIGNATURE-----