file upload

Kevin Benton kevin.benton at
Fri Dec 17 16:56:14 UTC 2004

grep -R is your friend in this case...

Kevin Benton
Perl/Bugzilla Developer
Advanced Micro Devices
The opinions stated in this communication do not necessarily reflect the
view of Advanced Micro Devices and have not been reviewed by management.
This communication may contain sensitive and/or confidential and/or
proprietary information.  Distribution of such information is strictly
prohibited without prior consent of Advanced Micro Devices.  This
communication is for the intended recipient(s) only.  If you have received
this communication in error, please notify the sender, then destroy any
remaining copies of this communication.

> -----Original Message-----
> From: developers-owner at [mailto:developers-owner at]
> On Behalf Of Ahac Sedušak
> Sent: Friday, December 17, 2004 1:00 AM
> To: developers at
> Subject: file upload
> Hi,
> the company I work for is using Bugzilla for bugs in its products and
> has made some changes to it.
> Someone changed post_bug.cgi to make it possible to upload files when
> posting bugs and also a script for anonymous posting from forms on
> other pages. So if there is a bug on a webpage that the company is
> responsible for that the users can enter bugs in a form on that page
> and it gets sent to a file called apb.cgi on the Bugzilla server which
> is post_bug.cgi without things that we don't need (user settings,
> rights, etc).
> It's my job to add file upload to that form and script, but I have a
> problem:
> defined $cgi->upload('data')
> || ThrowUserError("file_not_specified");
> I get the error here and I'm not sure where this gets defined. I copied
> it from post_bug where it was copied from attachment.cgi. (The guy that
> made this is not here anymore).
> I have checked apb.cgi and post_bug.cgi and haven't found any
> difference that would be important for upload.
> Can someone explain how and where this should get defined?
> ($::FORM{'data'} is not empty so the form must be ok)
> -
> To view or change your list settings, click here:
> <>

More information about the developers mailing list