Results 1 to 2 of 2

Thread: Check file size before upload??

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    50

    Check file size before upload??

    I'm using SA-File to upload file to a server. Before the files are uploaded I need to check the files size. How could that be done? As far as I understand it's only possible to check the size with SA-File after the upload is completed.

  2. #2
    bubba
    Guest
    Yes, SA-Fileup can only check the size of the file after it is uploaded because sa fileup runs on the server.

    You can set the sa-fileup object's maxbytes property.

    The problem with this is that the object will upload part of the file, until the file bytes uploaded = maxbytes. If you set maxbytes to 1000 and try to upload a 2500 size file, you will still end up loading 1000 bytes of that file.

Posting Permissions

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



Click Here to Expand Forum to Full Width