我有自己的PHP图像文件上传处理程序。我只是在寻找一个jQuery解决方案来优化上传栏和多个文件选择。所以我花了几个小时进入jQuery文件上传-没有用户界面,基本设置。我做了所有我需要的js更改,并尝试在我现有的文件上传表单中实现它。
但是现在我意识到,/server/php/UploadHandler.php对于jQuery脚本来说是必不可少的。如果没有这个php文件,我就不会到达“完成”事件。
我不想使用file processing UploadHandler类,因为我有很多自己的步骤,比如水印,需要对上传的图像文件进行处理。我喜欢这样做:
done: function (e, dat
这是上传文件并将值插入mysql的表单,数据库:
id -------- auto increment
name-------
filename---
文件结构:
/database.php----------the pdo database connection
/upload.php------------this will be the forme
/upload_class.php------this will be the class to upload
/filefolder------------this is the folder where file will be uplo