jdp.168 Posted December 16, 2008 Share Posted December 16, 2008 Hello all, I know there are alot of ajax/php upload progress bars out there, but they're either complicated, unreliable, or just generally don't fit my needs. Thus, i'm making my own. One problem I'm running into though, is how to check the local file size as compared to the uploaded file size. I can check and display the total uploaded size (ie, 437kb uploaded so far...), but to get the percent, I have to know the total size - BEFORE it's fully uploaded. I would like to say "437kb of 932kb uploaded so far"... but how do I get the "932" from the local file? I know it's possible (most others do this) - I just can't figure out how. any hints? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/137245-checking-local-file-size/ Share on other sites More sharing options...
Philip Posted December 16, 2008 Share Posted December 16, 2008 Last time I checked you couldn't get the file size before you started uploading. I know you can use ActiveX for that (but yuck!). But Javascript doesn't have access to local files, which in a way is a very good thing Quote Link to comment https://forums.phpfreaks.com/topic/137245-checking-local-file-size/#findComment-717196 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.