XUpload - Premature end of script headers: upload_status.cgi

XUpload related questions

Moderator: admin

Message
Author
localhorst
Posts: 1
Joined: May 31, 2008 2:02 pm

Premature end of script headers: upload_status.cgi

#1 Postby localhorst » May 31, 2008 2:38 pm

Hello,
I want to use the script XUpload for my website,
I code all on my local server.
And when I want to upload something,
the popup opens and there stands
"Premature end of script headers: upload_status.cgi"!
By the way I use XAMPP on WinXP.

Script: XUpload 2.6
Browser: Firefox 3
OS: WinXP SP1

Codestarting of the upload_status.gci:

Code: Select all

#!"C:\Programme\xampp\perl\bin\perl.exe" -w
### XUpload v2.6
### SibSoft.net (18 Jan 2007)
use strict;
use CGI::Carp qw(fatalsToBrowser);
use lib '.';
use XUploadConfig;
use HTML::Template;
[...]


In the apachelog stands that the error is on line 4: "use strict;"

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#2 Postby PilgrimX182 » Jun 02, 2008 6:43 am

As far as I remember you need to add

Code: Select all

chdir("dir-to-your-cgi-bin");

before "use strict;" under windows.


Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 0 guests