I don't know what you did, but it works now! Thank you so much for your
time.
Joe Schaefer wrote:
Try replacing the apreq_xs_upload_link() function in
glue/perl/xsbuilder/Apache/Request/Apache__Request.h
with the following one; rebuild and install it. If this
doesn't solve your problem,
Kevin Bosak <[EMAIL PROTECTED]> writes:
> Thanks again for the help but still no luck.
> I set the TMPDIR environment variable manually and restarted apache
> but still can't get the upload file in my script and nothing's being
> written to the tmpdir. If there's anything else I can try please le
Thanks again for the help but still no luck.
I set the TMPDIR environment variable manually and restarted apache but
still can't get the upload file in my script and nothing's being written
to the tmpdir. If there's anything else I can try please let me know
but I may just end up having to use
Kevin Bosak <[EMAIL PROTECTED]> writes:
> Thanks for the advice.
> I checked and $upload->link does indeed return false. I'm guessing
> it's because of something with TEMP_DIR you said, but my lack of
> knowledge is keeping me from getting this resolved. How do I
> determine what TEMP_DIR has be
Thanks for the advice.
I checked and $upload->link does indeed return false. I'm guessing it's
because of something with TEMP_DIR you said, but my lack of knowledge is
keeping me from getting this resolved. How do I determine what TEMP_DIR
has been set to? I'm using Mason with ApacheHandler2
Kevin Bosak <[EMAIL PROTECTED]> writes:
> I can get the file's name but the upload
> is simply not getting linked/saved. I'm sure it's probably something
> I'm doing wrong, but I don't know what. Here's the relevant lines
> from my code:
>
>my $upload = $r->upload('file');
>my $filenam
Thanks for the reply! But unfortunately I'm not having any luck with
link either. I'm using Mason 1.25 which isn't giving any errors and
there are no errors showing up in the apache logs. I can get the file's
name but the upload is simply not getting linked/saved. I'm sure it's
probably som
Kevin Bosak <[EMAIL PROTECTED]> writes:
> I too am having issues with file uploads using mod_perl2. I've gotten
> the beta of Apache::Request but it looks like from this thread that
> there's not yet a way to retrieve the uploaded file. Is this true?
No, it's not true at all. If you don't need
I too am having issues with file uploads using mod_perl2. I've gotten
the beta of Apache::Request but it looks like from this thread that
there's not yet a way to retrieve the uploaded file. Is this true?
Pete Smith wrote:
Hi,
I am new to this list, but I have tried looking through the docs
m/docs/faq/#can_i_use_mason_with_mod_perl_1_
Have fun.
-Original Message-
From: semuel [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 7:20 PM
To: 'Pete Smith'
Cc: [EMAIL PROTECTED]
Subject: RE: File uploads using Apache:;request in mod_perl2
Hello There.
No, this was changed to Ap
semuel wrote:
Hello There.
No, this was changed to Apache::RequestRec and friends.
See http://perl.apache.org/docs/2.0/api/Apache/RequestRec.html
Not really. Apache::RequestRec and Apache::Request are two different things.
__
Stas B
PROTECTED]
Subject: RE: File uploads using Apache:;request in mod_perl2
Sorry, I forgot to mention this too.
I am defining $r as the request object, like in mod_perl1:
my $r = Apache::Request->new(shift,
TEMP_DIR => '/tmp/mason',
Sorry, I forgot to mention this too.
I am defining $r as the request object, like in mod_perl1:
my $r = Apache::Request->new(shift,
TEMP_DIR => '/tmp/mason',
);
Is this correct in mod_perl2? I'm sorry, but I'm not terribly clued up on
mod_
> In your mp1 code, you are simply slurping the upload into
> $full_image_data; with apreq2 you can do that with a bucket
> brigade via
>
> my $bb = $req->upload('image')->bb;
> my $full_image_data = "";
>
> while (my $b = $bb->first) {
> $b->read(my $buffer);
> $full_image_data .
Joe Schaefer wrote:
Stas Bekman <[EMAIL PROTECTED]> writes:
[...]
You need the filehandle only if you use the temp file. In which case
bbs are irrelevant. If you use slurp then there is are no
filehandles. I think these are orthogonal.
Agreed- my earlier +1 was for both adding a slurp() method
Stas Bekman <[EMAIL PROTECTED]> writes:
[...]
> You need the filehandle only if you use the temp file. In which case
> bbs are irrelevant. If you use slurp then there is are no
> filehandles. I think these are orthogonal.
Agreed- my earlier +1 was for both adding a slurp() method and
marking th
Joe Schaefer wrote:
[...]
I'm not against adding the perl glue for APR::Brigade::flatten, quite
on the opposite I'm all for it. All I was saying is that users don't
need to know about the existance of APR::Brigade at all. Not only
because it's an unnecessary information to 99.9% of users out there,
Joe Schaefer wrote:
Stas Bekman <[EMAIL PROTECTED]> writes:
[...]
It doesn't sound like a good idea. Users ain't need to mess with
bucket brigades, unless they really want to. If the upload is always
going through the temp file, why making things complex for the users?
Exactly because it is NO
Stas Bekman <[EMAIL PROTECTED]> writes:
[...]
> It doesn't sound like a good idea. Users ain't need to mess with
> bucket brigades, unless they really want to. If the upload is always
> going through the temp file, why making things complex for the users?
Exactly because it is NOT always going
Joe Schaefer wrote:
Geoffrey Young <[EMAIL PROTECTED]> writes:
[...]
I'm not as familiar with brigades as I should be, but does
it save you the iteration process or is it just a substitute for
reading to a buffer?
It'd save you the iteration process (it's an APR::Brigade method,
not APR::Buck
Geoffrey Young <[EMAIL PROTECTED]> writes:
> Joe Schaefer wrote:
> > my $upload_data = $req->upload('file')->bb->flatten;
>
> oooh, nice. I can definitely see that being a useful idiom.
Not sure if it'd be better for flatten to take $upload_data as
an argument and return a status code instea
Joe Schaefer wrote:
> Geoffrey Young <[EMAIL PROTECTED]> writes:
>
> [...]
>
>
>>I'm not as familiar with brigades as I should be, but does
>>it save you the iteration process or is it just a substitute for
>>reading to a buffer?
>
>
> It'd save you the iteration process (it's an APR::Briga
Geoffrey Young <[EMAIL PROTECTED]> writes:
[...]
> I'm not as familiar with brigades as I should be, but does
> it save you the iteration process or is it just a substitute for
> reading to a buffer?
It'd save you the iteration process (it's an APR::Brigade method,
not APR::Bucket), but would n
> In your mp1 code, you are simply slurping the upload into
> $full_image_data; with apreq2 you can do that with a bucket
> brigade via
>
> my $bb = $req->upload('image')->bb;
> my $full_image_data = "";
>
> while (my $b = $bb->first) {
> $b->read(my $buffer);
> $full_image_data
i just figured something like this out on perlmonks.org:
http://www.perlmonks.org/index.pl?node_id=320770
On Fri, 2004-01-16 at 11:02, Joe Schaefer wrote:
> "Pete Smith" <[EMAIL PROTECTED]> writes:
>
> [...]
>
> > my $image_upload = $r->upload('image');
> > my $file_handle = $image_upload->fh()
"Pete Smith" <[EMAIL PROTECTED]> writes:
[...]
> my $image_upload = $r->upload('image');
> my $file_handle = $image_upload->fh();
>
> read ($file_handle, my $full_image_data, (stat($file_handle))[7]);
>
> my $imager = Imager->new();
>
> $imager->open(data => $full_image_data, type => 'jpeg');
> no, no, you have confused something. You need a new version of
> Apache::Request
> which is still in beta. Please take a look at:
> http://httpd.apache.org/apreq/
> Also please notice that it has its own mailing list if you have any
> questions.
Thanks for your help. I've installed it, and Apach
Pete Smith wrote:
Hi,
I am new to this list, but I have tried looking through the docs at CPAN and
googling for people with similar problems to no avail.
We have upgraded our server to apache2 + mod_perl2. I used to have a routine
that took a file upload from a multipart form and handed it as a st
Hi,
I am new to this list, but I have tried looking through the docs at CPAN and
googling for people with similar problems to no avail.
We have upgraded our server to apache2 + mod_perl2. I used to have a routine
that took a file upload from a multipart form and handed it as a stream to
Imager an
29 matches
Mail list logo