Gossamer Forum
Home : Products : Others : Fileman :

Error: file is 0 bytes ..

Quote Reply
Error: file is 0 bytes ..
Hi,

Why do I keep getting this error:

Quote:
Unable to upload file: Filename rest of filename.txt. Reason: File is 0 bytes..

I was hoping first it was about filenames with spaces in them. Then found that if I do this on my localhost (running Apache on Win2k) this is not a problem. Then thought it was about getting that absolutely latest version of the tool, but no change to that problem.
Now some of my users have started reporting the error even if they've got no spaces in the filename.

Environment on server with problem is linux/apache and I'm trying to upload using IE 5.

thanks,

-kjell
---
Kjell Knudsen
http://www.icbl.org
Quote Reply
Re: [kjellkk] Error: file is 0 bytes .. In reply to
Hi,

We've not released the last version yet which should solve that problem. You can fix your script at cmd_upload subroutine in Commands.pm like:

.....
my $filename = $data;
my $mode = $self->{cgi}->{type};
$filename =~ s/.*?([^\\\/:]+)$/$1/;
$filename =~ s/[\s\$\#\%'"]/\_/g;
....

It'll replace all special characters with underscore.

Cheers,

TheStone.

B.
Quote Reply
Re: [TheStone] Error: file is 0 bytes .. In reply to
Works smooth for most of it but I noticed that if I use any non-english characters there will still be no upload. And then there is no explanation.

Eg file with זרו (Norwegian characters) or ס.

I don't need that for this project but I figure others might run into that. Changing those to _ would be ok for me.

thanks

-kjell
---
Kjell Knudsen
http://www.icbl.org

Last edited by:

kjellkk: Jan 16, 2002, 8:40 AM