|
|
 |
Re: FN-FORUM php upload problem
date posted 7th June 2002 10:23
have you looked at the php file system functions?
e.g. is_dir()
Tim Ward
www.chessish.com
> Hi all,
>
> I'm trying to achieve an update on a database with a form containing
> text fields and an image upload field.
>
> The image is uploaded to a directory that is created under the name
> used in the form field 'name'.
>
> The problem I have is that when I update the image, if the directory is
> already present, It won't upload the image to the directory. I think
> what I need to do is check first if that directory exists and then
> delete it if it does so that the updated image can be uploaded and a
> new directory with the same name is created.
>
> any ideas?
>
> this is what I have at the moment:-
>
> *****************************
> |
 |
|