|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
I just installing APC the other day, and have been frustrated trying to make file upload progress work ever since. I have a simple test form with the APC_UPLOAD_PROGRESS hidden field value set to a random md5 hash generated per page refresh, and a repeating ajax call alongside the main POST which updates a progress bar - much like those found on the net, but i wrote it to use jquery. Firebug reports the ajax calls being made and completing, but nothing is being returned. Going to the progress checker script and typing the GET var manually also returns nada. When the upload completes, one of two things happens - the upload completes and a congratulatory message is displayed saying so, or upload completes and prompts the user to download THE RECIEVING SCRIPT. Not a good idea! After the upload completes, if I manually check the progress script with the previously uploaded key, it returns 100 (as in 100%), but not all the time. If I check the APC monitor script, sometimes I discover that the entry was never written. From this, I gather a few things: 1) The APC entries are being written after the upload finishes. 2) Sometimes the entry goes awol. 3) APC is screwing up something in the mime-types when downloading finishes, but only sometimes. 4) 2 and 3 dont nessicarily happen at the same time. This is whats in my php.ini: extension=/usr/local/lib/apc.so (which exists, from pecl install apc) apc.enabled = on apc.optimization = off apc.rfc1867 = on apc.rfc1867_freq = 4096k apc.rfc1867_name = APC_UPLOAD_PROGRESS apc.rfc1867_prefix = upload_ phpinfo() shows it being loaded and vars being set properly. Question - do I need to apc_store in the upload recieving script? I was under the impression that its done automagically, nothing Ive read says its needed. This has me completely stumped. Could someone list all the php.ini vars i need set in order for this particular function to work? Are there any modules that conflict with this one? Anything else someone can shed light on? Im almost out of ideas. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Still looking for with this - If anyone could give me a hand, it
would be appreciated. |
|
![]() |
| Outils de la discussion | |
|
|