WOW
This is more difficult than I thought. I have followed the ajax-attachments.php example, however the custom table of uploaded files is not displayed. I figured that the problem was that I had declared the upload folder in the initialization of the script using $uploader->SaveDirectory = "myfolder";
Then, I commented this statement, and the table appeared, but then the files where not moved of course to that folder, so I had to do it manually in the ajax-attachments-handler.php, where it says
//process the file here , move to some where
//rename(...)
So under those comments I typed
$mvcfile->moveTo("myfolder")
and it worked. However, then I had the problem when I wanted to remove the file, where it is removed from the table, but not physically from the server...
I'm so confused :( Isn't there a complete example on how to set this up, as it's getting really frustrating...