« first day (4325 days earlier)      last day (630 days later) » 

6:04 AM
posted on August 19, 2022

 
 
4 hours later…
10:28 AM
is anyone aware of how to make the browser download the file, i mean browser show the progress when downloading file using JS blob method
 
11:00 AM
@VardanaBhanot Sounds like a googleable issue
 
11:20 AM
@OlleHärstedt i did, couldn't find any good solution, like what i can do it make a UI progress, but i want browser to handle that and i couldn't find that
 
user6593469
I am confused about writing query in PHP, I want to:
1. SELECT RollNumber FROM student WHERE ProgramID= ?
2. SELECT DSID FROM datesheet WHERE DSID = ?
3. INSERT INTO result (DSIS, RollNumber) VALUES (both queried above)
 
11:55 AM
@VardanaBhanot Maybe it doesn't exist as native browser feature?
 
@OlleHärstedt yeah maybe but somehow gdrive and dropbox do it, they open their link that handles download in file in a iframe, after that they do something which i am unable to understand which helps, it download file with browser progress, the issue with the blob method is
, it will download the whole file even if the user clicked the button by mistake, and adding an alert dosent makes much sense for a download button, i can add a cancel button in ui but i want my ui to be clean and minimal, just less of js
 
12:19 PM
o/
 
12:37 PM
Oh ffs, lovely I broke the build by trying to merge a bug fix because DOM code just changed so much between 8.0 and 8.1 >_>
 
12:48 PM
@VardanaBhanot Feel free to join #php on libera chat IRC server, it's a bit more beginner friendly than this old farts channel ;)
 
@OlleHärstedt okay sure
 
cmb
@VardanaBhanot See plupload.com; you can check its implementation to see how it's done under the hood.
 
@cmb thanks, but does it handles downloads
 
cmb
1:21 PM
@VardanaBhanot Ah, no, that is only for upload. Sorry, I wouldn't know how to track download progress.
 
@cmb its fine, i do know how to track download its just i want to push that to the browser, as if you download via blob the save popup comes after the file has been downloaded
 
1:39 PM
I think at this point I should just stop trying to merge bug fixes
 
@Girgias what project are you working on?
 
php-src
 
thanks
I don't know why I tried touching DOM :|
 
cmb
somebody needs to, so thanks :)
 
1:46 PM
@Girgias thats nice
 
@cmb Let me work on my session INI refactoring PR and I'll go back to attempting to merge this >_>
 
cmb
well, at least AppVeyor may need a few hours to run
 
 
3 hours later…
4:41 PM
o/
 
4:52 PM
No! Somehow I wasn't think of looking at flysystem. I think I got so deep and invested into stream wrappers that I didn't think of other abstraction layers.

That will work nicely though, it ticks many other cases that I think I will have to handle, many thanks!
 
5:02 PM
@Christian imo there are limits to how useful abstraction layers are when there is complicated stuff going on. I am actually thinking about blocking stream wrappers from being used to open images in Imagick as they fail in non-debuggable ways, and are probably a massive security threat.
 
5:56 PM
morns
 
 
4 hours later…
9:48 PM
the best of the good mornings everyone!
 
10:02 PM
@StatikStasis hahahahaha going to check it out now
 
@PeeHaa \o/
 
Please don't hate me :D
It's a bit of a cheap track :)
 
@PeeHaa No hate... it's very simple, I get it. Sometimes less is more. =)
@PeeHaa I've heard it so much in various TikTok and YouTube Shorts that I had to know what it was. Example: youtube.com/shorts/vbUDCYZGUvg
Heading home - later!
 
10:35 PM
o/
@StatikStasis That's one of the hardest things in producing music. Less is more
 

« first day (4325 days earlier)      last day (630 days later) »