Re: determine file-upload's tmp-filename

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-------- Original-Nachricht --------
> Datum: Sat, 26 Jan 2008 16:09:58 -0800
> Von: Casey <heavyccasey@xxxxxxxxx>
> An: "Michael Fischer" <michi.fischer@xxxxxxx>
> CC: php-general@xxxxxxxxxxxxx
> Betreff: Re:  determine file-upload\'s tmp-filename

> On Jan 26, 2008 3:57 PM, Michael Fischer <michi.fischer@xxxxxxx> wrote:
> > hi there,
> >
> > is there a way to determine the tmp-filename of a file upload while the
> upload is still in progress?
> >
> > the tmp-file is stored in /tmp and it's name is something like
> PHPXXXXXXXX.
> >
> > what i would like to do is:
> > i want to upload a file via a html-form and while the upload is in
> progress make repeatedly ajax-requests to a php-script on the server that
> replies the size of the tmp file (the amount of data that was already uploaded).
> So in this script i need to know what the tmp-filename is.
> >
> > or do you think this is a completely useless approach?
> >
> > lg, Michi
> >
> 
> 
> Will this help?
> http://tomas.epineer.se/archives/3
> 
> -- 
> -Casey

well, i've found this before and this script uses perl-cgi and not php.
it determines the tmp-filename as such:

$post_data_file = "$tmp_dir/$sessionid"."_postdata";
$monitor_file = "$tmp_dir/$sessionid"."_flength";
$error_file = "$tmp_dir/$sessionid"."_err";
$signal_file = "$tmp_dir/$sessionid"."_signal";
$qstring_file = "$tmp_dir/$sessionid"."_qstring";

i'm looking for something similar in php...

lg, michi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux