Forum

Error while forking cgi process

Samuel
17 January 2012, 10:52
Hi,

When I submit file as following it works well
		function formButtonSubmit() {
document.getElementById("upgrade").submit();
}

<form id="upgrade" action="upload.cgi" method="post" enctype="multipart/form-data">
<input type="file" name="file" id="file" style="width: 400px;"/>
<br />
<input type="button" onclick="formButtonSubmit()" value="Upload" />
</form>

But if I use Valums AjaxUploader as following I get "Error while forking cgi process"
<div id="file-uploader-demo1">		
</div>
<script>
function createUploader(){
var uploader = new qq.FileUploader({
element: document.getElementById('file-uploader-demo1'),
action: 'upload.cgi',
debug: true
});
}

window.onload = createUploader;
</script>

Hiawatha version: 7.4.1
Operating System: Debian-Linux (kernel: 2.6.32)
Hugo Leisink
17 January 2012, 19:31
I have no idea what goes wrong. The file upload.cgi, is that a script or a binary?
This topic has been closed.