running SQL after successful upload with jQuery-File-Upload

╄→гoц情女王★ 提交于 2019-12-25 05:25:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!