Every time I upload gif/jpg images with Fileman files are corrupted and looking strange. Any idea what is causing this ?
Hi five40:
Please check this in your sub upload of fileman.cgi:
($fullfile =~ /[cgi|pl]$/) and ($buffer =~ s/\r//g);
There is something wrong there. It should be:
($fullfile =~ /(cgi|pl)$/) and ($buffer =~ s/\r//g);
Notice that the parentheses have been changed it is (cgi|pl) instead of [cgi|pl].
Cheers
Sun
Please check this in your sub upload of fileman.cgi:
($fullfile =~ /[cgi|pl]$/) and ($buffer =~ s/\r//g);
There is something wrong there. It should be:
($fullfile =~ /(cgi|pl)$/) and ($buffer =~ s/\r//g);
Notice that the parentheses have been changed it is (cgi|pl) instead of [cgi|pl].
Cheers
Sun