Gossamer Forum
Home : Products : Others : Fileman :

error when uploading

Quote Reply
error when uploading
hello,

fileman is a great tool. but what does this error-message mean?
"Unable to upload file: file.xyz. Reason: File is 0 bytes.."

it appears sometimes, when i try to upload a file. i have no idea, what's wrong about those files. others can be uploaded.

what can i do, to still upload the files?

sven
Quote Reply
Re: [sven h] error when uploading In reply to
It usually means exactly that - the file is 0 bytes. There's no point uploading an empty file.

What are you trying to upload?

- wil
Quote Reply
Re: [Wil] error when uploading In reply to
hi,

> It usually means exactly that - the file is 0 bytes.
no, my files are more than 0 bytes...

> What are you trying to upload?
that seems to be unimportant to fileman. i wanted to upload a picture. i changed the extension, i put it in a zip, just to see, if it helps. no.

i'm sitting behind a firewall, might that be the reason? but then, why do other files (pictures, ...) work?

it seems unlogical to me...

any ideas?

sven

Quote Reply
Re: [sven h] error when uploading In reply to
Hi,

I guess your directory is not writeable, so the error message should be "The directory ... is not writeable" that's better.

Cheers,
TheStone.

B.

Last edited by:

TheStone: Nov 7, 2001, 9:36 AM
Quote Reply
Re: [TheStone] error when uploading In reply to
hi,

> I guess your directory is not writeable
no, that's not it. i can upload other files in the same directory...

sven
Quote Reply
Re: [sven h] error when uploading In reply to
Can you give us a little more info?

1) What version of FileMan are you using?
2) What type of server? Unix or NT?
3) Is there a specific file type that causes the problem?

Regards,
Charlie
Quote Reply
Re: [CP] error when uploading In reply to
hi,

> 1) What version of FileMan are you using?

2.0.0-beta2

> 2) What type of server? Unix or NT?

unix

> 3) Is there a specific file type that causes the
> problem?

i don't think so. i've problems with a gif-file, but another gif-file made no problems...


thank you all for trying to help!

sven

Last edited by:

sven h: Nov 7, 2001, 10:54 AM
Quote Reply
Re: [sven h] error when uploading In reply to
I seem to remember that some people had a problem with version 1 where if there wasn't enough space for CGI.pm to make a tmp file, they would get a 0 byte upload. Version 2 uses GT::CGI and GT::TempFile so this might not be the problem but here is a snippit of the POD for GT::TempFile:

Quote:
TempFile borrows heavily from the tempfile used in CGI.pm.

TempFile picks a temp directory based on the following:

1. ENV{GT_TMPDIR}
2. ~/tmp
3. ENV{TMPDIR}, ENV{TEMP}, ENV{TMP}
4. /usr/tmp, /var/tmp, c:/temp, /tmp, /temp,
/WWW_ROOT, c:/windows/temp, c:/winnt/temp

I would start by checking the disk usage in the directories listed above. To find out what ENV{GT_TMPDIR} is, open your ConfigData.pm file and look for 'CGI_path' => '/path/to/www/cgi-bin/fileman' and add a /tmp to it. It woud be something like /path/to/www/cgi-bin/fileman/tmp.

This is a real shot in the dark but it's the only thing I can come up with.

Regards,
Charlie
Quote Reply
Re: [CP] error when uploading In reply to
hi,

> I seem to remember that some people had a
> problem with version 1 where if there wasn't
> enough space for CGI.pm to make a tmp file

mmh, but why should it then work with other (even bigger) files?

well, i don't understand this configuration stuff. additionally, i now can't edit the ConfigData.pm, because i'm sitting behind a firewall, with no ftp allowed (which is why i need fileman).

thank you anyway!

sven