+ Reply to Thread
Results 1 to 3 of 3

Thread: Current File uploading file size.

  1. #1
    Join Date
    Jul 2001
    Location
    Wellington
    Age
    30
    Posts
    282
    Rep Power
    47

    Question Current File uploading file size.

    Info:
    OS Linux RH SE 4
    OE 10.2A02 Enterprise/WebSpeed/Replication.

    We have a public website www.ekkoguardian.com which allows our logged in members to upload files to our secure web server. My issue is that my boss now want to show a progression bar of the file being uploaded. AJAX to the rescue.

    Currently we allow a maximum of 10MB file upload so there can be a period of time where it looks like nothing is happening for a few minutes.

    Is there anyway a second WebSpeed agent can query sibling agent to find out the current size of the file it's currently being uploaded?

    I know how to find out what the size of the file that has been uploaded, but by that time it's too late.

    Thanks.

    I guess PHP will have to be a workaround.

  2. #2
    Join Date
    Nov 2006
    Posts
    3
    Rep Power
    0

    Default Re: Current File uploading file size.

    I have experienced inserting images to database. What I did is to create chunks of the image with sequence.

    e.g:
    Let's consider 10mb Image,
    I will gave the memptr variable size of 2500kb, assign 2500kb part by part of file and save to database.

    Sequence_(ImageChunk)_________Size
    1________%$#@^^@^^%&(_________2500kb
    2________%$&&^@((@((F_________
    2500kb
    3________((@#(#&^@#*!_________2500kb
    ...
    ..
    . and so on

    That way, you'll have an idea about the current size of the file being transfer.

    Again, this is just an idea. I haven't tested this on web application and not sure if this will work on other file aside from images which i think may work.

    good luck.


  3. #3
    Join Date
    Jul 2001
    Location
    Wellington
    Age
    30
    Posts
    282
    Rep Power
    47

    Default Re: Current File uploading file size.

    I think I know the answer. It can't be done with WebSpeed.

    Unless Progress comes up with a "Start of WEB-NOTIFY response procedure" event. I can see there is no way of knowing what the size of the file(s) is being received from the messenger.

    As they say here in New Zealand "BUGGER".

    However I could possibly by pass the "Webspeed Agent" all together and handle the CGI-Messenger responses by writing my own Server Socket programme, but that just to much work.

+ Reply to Thread

Similar Threads

  1. Replies: 3
    Last Post: 28 Oct 2009, 04:42 PM
  2. Replies: 0
    Last Post: 4 Jun 2009, 04:29 AM
  3. Dump file size vs. table size
    By kennykilla in forum Database Admin
    Replies: 3
    Last Post: 16 Jan 2009, 05:04 AM
  4. Uploading a Binary File From The Browser
    By Cecil in forum WebSpeed
    Replies: 2
    Last Post: 20 Sep 2007, 09:37 PM
  5. Large file size of B1 file
    By itobinh in forum Database Admin
    Replies: 22
    Last Post: 8 May 2006, 11:17 AM

Tags for this Thread

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