Hello,
I'm using TFU 2.14.2 to upload files to TWG webgalley. I've made some changes when the user uploads a file. I added a function that check if the files are images, if not it create a 80X80 transparent image and put on it the icon for the specific file and add the file name to this image. Also, when the user opens a folder in the TFU he doesn't see the images if it's the added images, he sees only the files he uploaded. This I've done with a function that checks if in folder there is 2 files with the same name, without the extinsion, and if true the filename.png will added to the $exclude_directories.
Ok, now this is working very good for me, but now I have a problem to delete files, when i delete file or files the action is done for the wrong file. If for example I delete the fourth file in the folder from the TFU, the delete action is done for the fourth file on the server, this 2 file are not the same cause the TFU has some hidden files. It looks like the delete action is done not by the file name but by the file location in the folder.
I tried to solve it by my self but I just couldn't. Does someone have any suggestion how to solve it??
Thanks in advance. Lior Franko
|