Delete the selected file - Client side events

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
eayvl
User
Posts: 315

Delete the selected file - Client side events

Post by eayvl »

I understand that with this instruction I hide the selected file, but how can I delete the selected file?

Client-side Events
$("#ft_x_fields").hide();

Thanks.


mobhar
User
Posts: 11700

Post by mobhar »

You should delete the file using PHP code (server-side). Just Google "php unlink".


eayvl
User
Posts: 315

Post by eayvl »

Inspecting the button for to delete the selected file, this is the code:

#ft_x_fe_file_2 > tbody > tr > td:nth-child(5) > button


eayvl
User
Posts: 315

Post by eayvl »

The file is not added, I only have it selected.

try with-> $("#ft_x_fe_file_2").delete(); it does not eliminate it.


mobhar
User
Posts: 11700

Post by mobhar »

Your code is jQuery which runs in client-side and it does not have to do with deleting file in server-side.

mobhar wrote:
You should delete the file using PHP code (server-side). Just Google "php unlink".


Post Reply