0

I am using uploadifive to upload files on the server. While the file is being uploaded on the server and a user clicks on the (x) icon the upload will stop.

However, after the file is uploaded. If a user click on the (x) I want to remove that file from the server completely.

I tried to use onCancel event but that gives me the file information on my local machine. I will need the final file name that was saved on the server (I rename file before copying them on the server.)

How can I remove he file when the use clicks the (x) icon.

Thank you

danmullen
  • 2,556
  • 3
  • 20
  • 28
Jaylen
  • 39,043
  • 40
  • 128
  • 221
  • just ignore the file completely. php already automatically removes the temporary file it creates to store the upload, UNLESS you take steps to preserve it (e.g. `move_uploaded_file()`). – Marc B Oct 22 '14 at 21:55
  • After the temp file is uploaded and moved via `move_uploaded_file()` so I want to get the final file name after `move_uploaded_file()` then issue a `unset` to remove it from the server – Jaylen Oct 22 '14 at 22:13
  • m_u_f() requires YOU to provide the path/filename of where the file's being moved to. you should already have that information somewhere. – Marc B Oct 23 '14 at 14:09

0 Answers0