Thread Uploadprobleme: Problem beim Upload einer ZIP Datei (4 answers)
Opened by [E|B] at 2003-08-08 17:51

esskar
 2003-08-08 18:38
#1419 #1419
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;

binmode STDOUT;
open F, "< files/data.zip";
binmode F;
print "Content-Type: application/octet-stream\n";
print "Content-Disposition: filename=data.zip\n\n";

my ($len, $off, $data) = (0, 0, undef);
while(len = read(F, $data, 1024, $off))
{
print STDOUT $data;
$off += $len;
}
close F;

View full thread Uploadprobleme: Problem beim Upload einer ZIP Datei