Re: determine file-upload's tmp-filename
| From: | Michael Fischer | Date: | Mon, 28 Jan 2008 19:50:06 +0000 |
| Subject: | Re: determine file-upload's tmp-filename | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268225@lists.php.net to get a copy of this message | ||
On Mon, 2008-01-28 at 12:17 -0600, Richard Lynch wrote:
>
> On Sat, January 26, 2008 5:57 pm, Michael Fischer 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?
>
> Google for PHP upload meter instead.
>
> That's probably how it works, more or less...
>
> I still think it's STOOPID to round-trip back and forth to the server
> to get an upload progress meter -- The browser developers should be
> providing you with some kind of progress notification system locally!
>
well, i agree with you - the browser should provide some sort of
functionality to find out the amount of data already sent. but i don't
know any browser that does.
all the php upload meters that i found on google either require to
patch php or use perl.
lg, Michi
--
Sautergasse 27-29/35
1160 Wien
phone: 0043 650 2526276
email: michi.fischer@gmx.net
web: http://www.webfischer.at