Jump to content

Recommended Posts

I found here that the HTML  header actually contains the information i need but i don't know how to intercept the data before the content, the html body which is the content  gets transmitted ...

 

http://en.wikipedia.org/wiki/List_of_HTTP_headers

 

Here it says it tells that it sends me the data i nee but how do i intercept it.... QQ

 

Is there any other function in php which can manipulate header data directly?

You would need to open a socket connection that listens on a specific port number so that your php script actually handles the upload. See the script and the discussion at the following link for how you might do that - http://www.phpfreaks.com/forums/index.php/topic,284122.0.html

 

What reason do you need this information for?

Hm................... (1h brain torturing)...........

 

 

OK the conclusion, it is not possible to monitor the upload... it would be nice but you need to much of server control... not useful for me. but good idea XD

i think il go for a hidden swf which only gets the size and generates the sha1 value and sends it XD together with a season cookie  info so i can keep track of it.

 

duos someone know how to build such file i doubt it is difficult.

 

 

but is without any purpose.... :-\ because when the file is upload it makes no difference that it is to large or not i intend to use it more like a hack protection and a DOS attack prevention than any control... there are other ways to limit the size like common human sense XD

So did you examine the script that was mentioned in the thread I posted a link to above. It has the ability to check the Content-Length header and abort the upload if it is greater than a value you choose. Someone would need to test how well this actually works.

 

AFAIK, when php handles the upload, php does not cause the upload to abort if the size exceeds the various php settings.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.