Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22

Thread: upload progress

  1. #21
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    Unfortunately, that script does not show a percentage done, just how much of the file has been uploaded, But I guess that's the best you can do without php extensions. Is there anyway to know the file size of a file BEFORE it's done uploading? Because I'm pretty sure there is; I have seen sites that say before you upload it that it is not the right file size or such, (Maybe even uploading to the forums here, I forget). The key is to access $_FILES while it's uploading...
    Here's a W3 page that uses file restrictions, and it uses $_FILES, but Only after it's uploaded: http://www.w3schools.com/PHP/php_file_upload.asp
    What if the action of a forum was to a page with an iframe in which had php code that read $_FILES. Or maybe because it wasn't the action, $_FILES would be null.... Hmmmm
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

  2. #22
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    The request is not sent until the file is up. I still see no way.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •