我在托管在亚马逊 ec2 上的服务器上使用 uploadify,我打开了端口 80 和 22,Uploadify 使用哪个端口以便我可以修复它?
问题是uploadify让客户相信图像已上传但我没有到达我的服务器,我认为这是端口,因为它在我的旧服务器上使用hostgator
我在表格上的代码是:
// <![CDATA[
$(document).ready(function() {
$("#dialog").dialog({
bgiframe: true,
height: 250,
width:400,
autoOpen: false,
modal: false,
buttons: {
'cancel order': function() {
$(this).dialog('close');
$('#file_upload').uploadifyClearQueue();
$('#file_upload').uploadifyCancel(($('.uploadifyQueueItem').first().attr('id').replace('file_upload','')));
},
'confirm order': function() {
$('#file_upload').uploadifyUpload();
$(this).dialog('close');
}
}
});
$('#file_upload').uploadify({
'uploader' : 'swf/uploadify.swf',
'script' : 'swf/uploadify.php?userid=<?php echo $_SESSION['userid']; ?>',
'cancelImg' : 'image/cancel.png',
'folder' : 'uploads',
'buttonImg' : 'image/uploadbtn.png',
'height' : 120,
'width' : 400,
'sizeLimit' : 299240000,
'auto' : false,
'queueSizeLimit' : 3,
'scriptData': {'session_name': '<?php echo session_id(); ?>'},
'checkScript' : 'ajaxfiles/check.php',
'onSelect' : function(event,ID,fileObj) {
$('#dialog').dialog('open');
var price=$('#templateprice').val();
var txt="You are now uploading 1 image at a price of $ "+price+" pr. image ";
$('#test_para').text(txt);
},
'onError' : function (event,ID,fileObj,errorObj) {
alert(errorObj.type + ' Error: ' + errorObj.info);
},
'onProgress' : function(event,ID,fileObj,data) {
var bytes = Math.round(data.bytesLoaded / 1024);
$('#' + $(event.target).attr('id') + ID).find('.percentage').text(' - ' + bytes + 'KB Uploaded');
return false;
},
'onAllComplete' : function(){ alert("Thank you. File uploaded successfully."); }
});
});
// ]]>