🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #50743

Re: Jak wgrywać plik pokazując ProgressBar

#50743
From: aaaa
Date: Fri, 29 Apr 2011 15:23
15 lines
1860 bytes
> Tu masz asynchroniczny upload (nie czytałem zbyt dokładnie):
> http://www.anyexample.com/programming/php/php_ajax_example__asynchronous_file_upload.xml
>
> progress bar dorobisz pytając AJAXem ile już się przesłało.

Uzywanie iframe'a do wysylania pliku w tle w stary numer.
A progressbara nie zrobie odpytujac AJAXem, bo PHP przy uploadzie zapisuje 
plik w swoim katalogu tymczasowym, ktorego nie mozna zmienic dla kazdego 
usera z osobna, tzn. wszystkie uploady wszystkich userow trafiaja do tego 
samego katalogu i nie ma sposobu, by drugi skrypt stwierdzil gdzie jest 
aktualnie uploadowany plik dopoki ten plik sie nie wgra w calosci.
Czyli progressbara nie zrobie.

-- 
A 
Technical Details
Message-ID: <4dbad7d7$0$2460$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!feeder.erje.net!tudelft.nl!txtfeed1.tudelft.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <4db9dd25$0$2445$65785112@news.neostrada.pl> <slrnirjqa9.lu3.tom@tv2.dom.local>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!feeder.erje.net!tudelft.nl!txtfeed1.tudelft.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
From: "aaaa" <aaaa@aaaaaaaaaaaaaaaaaaa.com>
Newsgroups: pl.comp.lang.javascript
References: <4db9dd25$0$2445$65785112@news.neostrada.pl> <slrnirjqa9.lu3.tom@tv2.dom.local>
Subject: Re: Jak wgrywać plik pokazując
 ProgressBar
Date: Fri, 29 Apr 2011 17:23:01 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994
Lines: 16
Message-ID: <4dbad7d7$0$2460$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 83.9.39.216
X-Trace: 1304090583 unt-rea-a-01.news.neostrada.pl 2460 83.9.39.216:1371
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit