Hi,
This is the code that finally did it:
http://ws.stfx.eu/458U3WRKXAW1.
I was really puzzled by the progress bar not being updated despite of
the download being made (it took me several days to find what happen!).
The thing is that the total size of the file was not being delivered by
the
Hi again,
Umm this is kind of strange. When I try with the Sven code
downloading the Pharo, downloading progress bar works, but when I try
the follow one, download works and forking lets me use the environment,
as with Sven's but progress bar don't advance:
=
Hi,
On 13/05/16 00:35, Sven Van Caekenberghe wrote:
On 13 May 2016, at 01:00, Offray Vladimir Luna Cárdenas
wrote:
Hi Sven,
Thanks for your quick answer. I tried both approaches but I'm missing
something. See my last attempt at http://ws.stfx.eu/KBVBAP72IWOO with
> On 13 May 2016, at 01:00, Offray Vladimir Luna Cárdenas
> wrote:
>
> Hi Sven,
>
> Thanks for your quick answer. I tried both approaches but I'm missing
> something. See my last attempt at http://ws.stfx.eu/KBVBAP72IWOO with the
> last one.
That last code makes no
When the UI thread is really busy, updating the UI can be problematic.
An extra fork seems to help:
(FileLocator temp / 'PharoV30.sources') ensureDelete.
[ [ :bar |
bar title: 'Downloading Sources...'.
[
ZnClient new
Hi again,
This implementatin http://ws.stfx.eu/FSNU7TV3O5FY also shows a static
downloading progress bar without any download, but the download works.
Ofcourse any example with another url for a smilar large file could work
for me. I'm just testing with the file for this [1] (Soon a proper
Hi Sven,
Thanks for your quick answer. I tried both approaches but I'm missing
something. See my last attempt at http://ws.stfx.eu/KBVBAP72IWOO with
the last one. I get a progress bar message, but not the advancements on
it. What I'm missing?
Cheers,
Offray
ps: The file I'm trying to
Hi Offray,
The actual implementation of #saveContentsToFile: can be found in
ZnHttpSaveContentsToFile>>#performOperation where you can see how ZnClient is
invoked. Just copy that with signalProgress: true added and you should be good.
Alternatively, you could wrap the first expression as
Hi,
I'm using
myUrl asUrl saveContentsToFile: file
to download large files and is working fine. But I would like to add a
progress bar to show the progress to the user. Previously I used
===
[: bar |
bar title: aString.
[
"A classical ZnClient