I have a problem deleting a video; if I first upload a video, delete it and then pass on the src as null, it can not be deleted, but If I wait until I upload a new movie, will run to delete the previous film, so equal to I do not care how many videos to delete. Uploading a new film will correctly delete the previous video, but I can not find the problem. I personally suspect that src at front-end is causing the problem.
Would like to ask help on how to solve this. The following is my code:
I have a problem deleting a video; if I first upload a video, delete it and then pass on the src as null, it can not be deleted, but If I wait until I upload a new movie, will run to delete the previous film, so equal to I do not care how many videos to delete. Uploading a new film will correctly delete the previous video, but I can not find the problem. I personally suspect that src at front-end is causing the problem.
Would like to ask help on how to solve this. The following is my code:
front end:
back end :