Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Weird thing after file uploading


Message #1 by senthil_T_kumar@l... on Mon, 20 Jan 2003 06:42:30
Ok, I understand it. But is there anyway to avoid it.

Thanks 
senthil

> 
> I tried a file uploading program. It worked fine. But, after successfully
> uploading the file, if I delete that uploaded file and press 'F5' 
or 'Ctrl
> R', (it asks whether to retry or cancel) the previously uploaded (and
> deleted) file comes back again. I read that the temp file will be deleted
> once it is moved. How could the file come back again? Could anyone tell 
me
> why this is happening and how to avoid this?
>
> I'm using the move_uploaded_file command to move the file from temp
> directory to the original place.


Well, when you refresh a page that was generated as the result of a POST 
form,
you're prompted to resubmit the form data.  Resubmitting the form data is, 
in
effect, re-uploading the file.


Take care,

Nik


  Return to Index