Hello Hector Pizarro,
Tuesday, June 17, 2003, 1:47:04 PM, you wrote:
HP Hello, last week I asked about the problem I had with the partial uploaded
HP files,and how Apache::Request never got the error code correctly. (By the way,
HP thanks for the answer, looks like a bug) Well, the solution for me was to use
HP Apache read() and parse the incoming data myself. Uf, what a job!
HP Everything looks fine now, when I receive several files in the same
HP posting froma form and the user aborts the process, say, closing the form window,
I can
HP rescue and save the files completed and dismiss the last one incomplete. My
HP problem now is that I have the /tmp directory in another partition in the
HP server.When I want to move the uploaded files from temporal to final, I can't do
HP 'rename' as this function doesn't work across different filesystems. How
HP can Ichange the temporal dir from '/tmp' to, say, '/home/tmp'? I'm not using
HP Apache::Request so it can't be done as a parameter there, is it possible
HP to setthis in mod_perl, apache or I have to do it in the linux itself? if it is
HP the last one,any idea where?
HP Any information will be welcome, thanks people.
HP --
HP Hector Pizarro
HP Amautatech
What's wrong with TEMP_DIR ?
my $apr = Apache::Request-new($r, TEMP_DIR = /home/httpd/tmp);
my $upload = $apr-upload('file');
$upload-link(/home/user/myfile) || warn link failed: $!;
see: perldoc Apache::Request
--
WBR, Mike P. Mikhailov
mailto: [EMAIL PROTECTED]
ICQ:280990142
My mother always used to tell me, The early bird gets the worm.