Gossamer Forum
Home : Products : Others : Fileman :

I've an idea for the fileman!

Quote Reply
I've an idea for the fileman!
Why don't you make the กฐ fileman2.0" support กฐ zip" function, that will be very good!Unsure
Quote Reply
Re: [pjt_ren] I've an idea for the fileman! In reply to
support in what way?
Quote Reply
Re: [RedRum] I've an idea for the fileman! In reply to
upload
Quote Reply
Re: [pjt_ren] I've an idea for the fileman! In reply to
It already does that.
Quote Reply
Re: [RedRum] I've an idea for the fileman! In reply to
My mean isn't that.My mean is when the files have uploaded.Then fileman can ex... the "zip"file!!!!



sorry,my english is very bad
Quote Reply
Re: [pjt_ren] I've an idea for the fileman! In reply to
Not all servers support unzipping.

You could create a simple routine to do it though if you have "unzip" installed on your server...


Code:
sub unzip {
#-----------------------------------------
# Unzip a zip file.

my $file = shift;
my $path = locate_unzip() or die "Cannot locate unzip binary";
my $output = qx/$path $file/;

return $output;

}

sub locate_unzip {
#------------------------------------------
# Locate the unzip binary.

my @opts = qw(/bin/unzip /usr/bin/unzip /usr/sbin/unzip /usr/local/bin/unzip);

for (@opts) {
-x $_ and return $_;
}

return 0;
}


Well thats just a basic example...you'd probably need to make changes to get it to work with fileman.

Last edited by:

RedRum: Feb 18, 2002, 3:19 AM
Quote Reply
Re: [RedRum] I've an idea for the fileman! In reply to
Thank you very much.



but what can I add it into the fileman
Quote Reply
Re: [pjt_ren] I've an idea for the fileman! In reply to
Hi,

We are trying to keep FileMan pure perl, so we don't want to do anything that requires a system call, or depends on some program installed on the server. We have a perl implementation to unarchive tar files, and can use Compress::Zlib to unarchive .gz files. Unfortunately I'm not aware of one to handle zip files.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] I've an idea for the fileman! In reply to
Oh,I see.But also thank you very much
Quote Reply
Re: [pjt_ren] I've an idea for the fileman! In reply to
But why the fileman can not suppor others langue?

I can input others langue but when the fileman save it,then I open it again.The fileman can not show the ring word! It show many ASSIC !!!!!Crazy
Quote Reply
Re: [pjt_ren] I've an idea for the fileman! In reply to
Can you tell me what is the fileman need except perl 5.002.

Because I can run it in the net sever,but can not run it in my computer's sever!

My computer's sever can run anther program.
Quote Reply
Re: [pjt_ren] I've an idea for the fileman! In reply to
Could you tell me?
Quote Reply
Re: [pjt_ren] I've an idea for the fileman! In reply to
in fact .gz or .tar can use in windows