views:

195

answers:

2

I need uploadprogress extension for php on windows. I downloaded dlls from here, but the version doesn't match with my php. I have php 5.3.0 build 20090626 VC++6. And I couldn't find a compatible uploadprogress.dll. I can't build it because I don't have php source of my version. Also I don't want to use APC extension. can anyone provide this dll for me?

A: 

Have you considered using the JavaScript APIs for upload progress? They're much more accurate and allow you to report progress without a server callback.

https://developer.mozilla.org/en/using_xmlhttprequest#Monitoring_progress

It should be noted that the uploads occur via AJAX in this instance, which may or may not be helpful. AJAX-based uploads can be cancelled, restarted, or otherwise interacted with using JS alone.

The downside is that it's a tad complicated to bundle the data. Some user agents still have issues with binary strings, so it may be necessary to convert the data to base 64 before uploading it. Also, it should be assumed that not all user agents support this feature.

Hope this helps in some way.

mattbasta
actually I don't need to see progress!! I want the content of uploaded file even if it is not completely uploaded. This extension has this feature so I want to use it.
Morteza M.
A: 

There is two solution for this problem. One is to build extension yourself with php and VC6. it is not recommended because there would be lots of bugs and errors. the second solution is to upgrade apache to apache lounge ( it is built with VC9 ) and then use php VC9 and uploadprogress.dll provided by pierre or Artefacto or build it with VC9.

Morteza M.
There will be lots of bugs and errors? Only if you don't follow the instructions Pierre's provided in the wiki...
Artefacto
Yes! I followed the instructions and finally I left with lots of bugs and errors. maybe I'm not professional, anyway, the other way is much easier!
Morteza M.