I am using the upload mod to up load 2 files but the problem i have is one of the is a zip file not a image. The script looks in the upload directory and then
displays all the files with a <img src= tag I would like to change this part here that says
foreach $file (@files) {
next if ($file =~ /^\./); # Skip "." and ".." entries..
next if ($file =~ /^index/); # Skip index.htm type files..
print qq|
to some thing like
foreach $file (@files) {
next if ($file =~ /^\./); # Skip "." and ".." entries..
next if ($file =~ /^index/); # Skip index.htm type files..
if ($file =~ /^.zip/);
print qq|
<a href= www.path-name-to-file.zip></a></p>|;
now print any image files that you found in the folder
If some one could show me how to do this I would be most great full
displays all the files with a <img src= tag I would like to change this part here that says
foreach $file (@files) {
next if ($file =~ /^\./); # Skip "." and ".." entries..
next if ($file =~ /^index/); # Skip index.htm type files..
print qq|
to some thing like
foreach $file (@files) {
next if ($file =~ /^\./); # Skip "." and ".." entries..
next if ($file =~ /^index/); # Skip index.htm type files..
if ($file =~ /^.zip/);
print qq|
<a href= www.path-name-to-file.zip></a></p>|;
now print any image files that you found in the folder
If some one could show me how to do this I would be most great full