0
我一直在努力解决我的问题。我看过谷歌的负载,并尝试修复,但我没有运气。有问题发送上传值到隐藏字段
$(function() {
$("#listing_pic").uploadify({
height : 30,
swf : 'uploadify/uploadify.swf',
uploader : 'uploadify/uploadify.php',
width : 120,
fileExt : '*.jpg; *.jpeg; *.JPG; *.JPEG;',
checkExisting : 'uploadify/check-exists.php',
simUploadLimit: 2,
fileSizeLimit : '4MB',
auto : true,
multi : true,
onComplete : function(event,queueID,fileObj,response,data) {
$('#hiddenlistingpic').val(response);
},
});
});
我试着让Uploadify我的图像上传到我的服务器(正常工作),但然后发送文件名的隐藏字段,这样我可以上传数据到我的数据库更新类。这让我很头疼,而且我确定它很简单。
你可以console.log(response + data)? – Phil
什么是您的'uploadify/check-exists.php'返回值或回显值? – shadyyx
为什么不直接在服务器端上传脚本中更新数据库? – hndr