Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon7.gif   Increase attachment file size for elog command line client, posted by Kevin Ellwood on Fri Sep 27 19:17:58 2002 
    icon2.gif   Re: Increase attachment file size for elog command line client, posted by Stefan Ritt on Mon Oct 14 10:28:48 2002 
Message ID: 145     Entry time: Mon Oct 14 10:28:48 2002     In reply to: 142
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Request  OS:   ELOG Version:  
Subject: Re: Increase attachment file size for elog command line client 
> Hi,
> 
> I am having trouble modifying the elog client to allow larger 
attachment.  I
> have elogd configure for attchment sizes of 10Meg and I would like the
> option to be able to use the elog client.  Can anyone give me key points 
as
> to how to go about doing this?  I have tried but I must be missing 
something.
> 
> Also, as a suggestion, it might make sense to add a MAX_ATTACHMENT_SIZE 
def
> in a common header file.
> 
> Thanks
> Kevin

I modified the elog program such that the attachment buffer is dynamically 
allocated which means that it works with any size. Please find the updated 
version at

http://midas.psi.ch/cgi-bin/cvsweb/~checkout~/elog/elog.c?rev=1.10

Note that for attachments larger than ~2MB, one hase to increase the 
WEB_BUFFER_SIZE in elogd.c.

- Stefan
ELOG V3.1.5-fe60aaf