问题
I am way out of my comfort zone here and could use some help. I am using the jQuery-File-Upload plugin to upload files to directory. On the success of the upload I would like to run an SQL query to my database. Where do I do this? Is it with the callbacks?
I am using the upload.class.php
回答1:
You can check if your file is uploaded on the server with the function is_uploaded_file or move_uploaded_file If these return TRUE you can running your query.
来源:https://stackoverflow.com/questions/10905195/running-sql-after-successful-upload-with-jquery-file-upload