Skip Menu |

This queue is for tickets about the CGI-Uploader CPAN distribution.

Report information
The Basics
Id: 14493
Status: resolved
Priority: 0/
Queue: CGI-Uploader

People
Owner: MARKSTOS [...] cpan.org
Requestors: bignose [...] gmail.com
steven [...] knowmad.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.11
Fixed in: (no value)



Subject: Specify the tempfile directory in the instance
Hello Mark, It would be nice if there was a configuration so that I could declare where I want my tempfiles to be created. Otherwise when I use your module I have to give the www user write permissions on the directory my script is in. ~ Steven
Date: Wed, 7 Sep 2005 08:46:22 -0500
From: Mark Stosberg <mark [...] summersault.com>
To: Guest via RT <bug-CGI-Uploader [...] rt.cpan.org>
Subject: Re: [cpan #14493] Specify the tempfile directory in the instance
RT-Send-Cc:
On Wed, Sep 07, 2005 at 09:08:33AM -0400, Guest via RT wrote: Show quoted text
> > It would be nice if there was a configuration so that I could declare > where I want my tempfiles to be created. Otherwise when I use your > module I have to give the www user write permissions on the directory > my script is in.
Seems reasonable. Patches, tests welcome. Mark
Show quoted text
> Hi, > > There a change to Uploader.pm I made a while back but It never made it > into the distribution > > Change line 630 of Uploader.pm from this > > my ($tmp_fh, $tmp_filename) = tempfile('CGIuploaderXXXXX', UNLINK => 1); > > To this > > my ($tmp_fh, $tmp_filename) = tempfile('CGIuploaderXXXXX', UNLINK => > 1, DIR => $self->{'temp_dir'}); > > And add temp_dir => { type => SCALAR }, to the validate parmaters on
line 239 Show quoted text
> > I can submit a more formal patch if need be, but I thought this one > was pretty simple. > > Jeff.
Jeff, Please do prepare a patch, including updating 'Changes', docs, and hopefully, a test. Also, use the RT bug tracker for future bugs and wishes, which makes it easier to me to stay organized about them. Mark
Subject: Re: [rt.cpan.org #14493] Specify the tempfile directory in the instance
Date: Mon, 31 Jul 2006 16:18:06 -0400
To: bug-CGI-Uploader [...] rt.cpan.org
From: "Jeff MacDonald" <bignose [...] gmail.com>
Please see attached patch [i hope i did it right] used diff -u tomakethe files. 3 files included Uploader.pm Imagemagick.pm and Changes file. These only include the temp_file fix. If you'd prefer darcs, I can do that. jeff. On 7/31/06, via RT <bug-CGI-Uploader@rt.cpan.org> wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=14493 > >
> > Hi, > > > > There a change to Uploader.pm I made a while back but It never made it > > into the distribution > > > > Change line 630 of Uploader.pm from this > > > > my ($tmp_fh, $tmp_filename) = tempfile('CGIuploaderXXXXX', UNLINK => 1); > > > > To this > > > > my ($tmp_fh, $tmp_filename) = tempfile('CGIuploaderXXXXX', UNLINK => > > 1, DIR => $self->{'temp_dir'}); > > > > And add temp_dir => { type => SCALAR }, to the validate parmaters on
> line 239
> > > > I can submit a more formal patch if need be, but I thought this one > > was pretty simple. > > > > Jeff.
> > Jeff, > > Please do prepare a patch, including updating 'Changes', docs, and > hopefully, a test. > > Also, use the RT bug tracker for future bugs and wishes, which makes it > easier > to me to stay organized about them. > > Mark > >
-- Unless otherwise indicated, anything I write is either garnered from experience or pulled out of my ass, depending on situational needs.. Jeff MacDonald
Download uploader.patch.tgz
application/x-gzip 1.3k

Message body not shown because it is not plain text.

This was released in 2.12.