Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tony Galfano on Feb 11, 2009 09:05
open dhtmlx forum
Is it possible to save the filename to a mysql database using vault?

Hi,

Your tools look very sharp and I'm looking into several of them for an upcoming project. I've been looking for a multiple file uploader and vault looks great, however, I need to save the file name to a mysql database as well using php. Do you have a script or extension of this one that will allow me to insert the filename, and possibly other fields from the upload form to the database?

Thanks,

Tony
Answer posted by Support on Mar 16, 2009 10:15

Hi,

You can add a few lines of code in this script (UploadHandler.php), to save the path in the database:

if(move_uploaded_file($tempLoc,$target_path))
{
        $_SESSION['value'] = -1;
        save_to_db($target_path);
}

function save_to_db($target_path)
{
     ...
}