Building attachment table (AJAX)

Last post 02-22-2010, 7:13 PM by cutechat. 2 replies.
Sort Posts: Previous Next
  •  02-22-2010, 1:13 AM 58882

    Building attachment table (AJAX)

    Hello,
     
     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,
     
    I want to add these attached file also  in my Database.
     
    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...
     
    Thanks in advance

  •  02-22-2010, 1:49 PM 58901 in reply to 58882

    Re: Building attachment table (AJAX)

  •  02-22-2010, 7:13 PM 58907 in reply to 58882

    Re: Building attachment table (AJAX)

    Hi,
     
    Uploader only maintain the temp files.
     
    Once you move the file to another place,
     
    You need maintain it by your self.
     
    Please check the file manager example .
     
    Regards,
    Terry
View as RSS news feed in XML