我在我的网站上使用SWFUpload。当我在我的开发机器上测试SWFUploader时,它工作得很好。然而,当我转向生产然后它说“错误500”我检查了文件类型和文件大小,但似乎没有问题或冲突。我几乎使用标准设置..
upload1 = new SWFUpload({
// Backend Settings
upload_url: '<%= Page.ResolveUrl("~/UserProfile/Photos.aspx") %>',
// File Upload Settings
file_size_limit: "1024*5", // 5MB
file_types: "*.bmp; *.gif; *.jpeg; *.jpg; *.png;",
file_types_description: "Image Files",
file_upload_limit: "10",
file_queue_limit: "0",
// Event Handler Settings (all my handlers are in the Handler.js file)
file_dialog_start_handler: fileDialogStart,
file_queued_handler: fileQueued,
file_queue_error_handler: fileQueueError,
file_dialog_complete_handler: fileDialogComplete,
upload_start_handler: uploadStart,
upload_progress_handler: uploadProgress,
upload_error_handler: uploadError,
upload_success_handler: uploadSuccess,
upload_complete_handler: uploadComplete,
// Button Settings
button_image_url: "../Images/XPButtonUploadText_61x22.png",
button_placeholder_id: "spanButtonPlaceholder1",
button_width: 61,
button_height: 22,
// Flash Settings
flash_url: "../SWFUploader/swfupload.swf",
custom_settings: {
progressTarget: "fsUploadProgress1",
cancelButtonId: "btnCancel1"
},
// Debug Settings
debug: false
});
这可能是造成此错误的原因..