Forum Moderators: DixonJones

Message Too Old, No Replies

How to track HTTP upload bandwidth

HTTP Upload bandwidth

         

Jernst

6:27 pm on Apr 6, 2003 (gmt 0)

10+ Year Member



I allow my users to upload files to their own directory on my site via a HTTP file upload. I need to track both the up- and down-stream bandwidth for each of my users. I can get the download data from Apache's access log, but it doesn't seem to show an entry for the file UPload.

Does anyone know how I can get this information?

sugarkane

3:15 pm on Apr 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld Jernst

Nope, I don't think there's any way to make Apache log the upload file size. Your best bet would probably be to modify your upload script to keep its own log of file sizes / users.

Birdman

3:22 pm on Apr 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If using PHP [php.net], $_FILES['userfile']['size'] [php.net] to get the file size.

Jernst

7:36 pm on Apr 7, 2003 (gmt 0)

10+ Year Member



Thanks for the responses. I just stumbled upon this place last week. What a great resource!

Sounds like its a good thing I went with an Open Source product! I'll go make some hacks to the php code to get what I need.

Thanks.