Pure PHP Upload 3 Support Product Page

When uploading a file Progress bar doesn't do anything

Reported 11 Nov 2013 16:19:42
2
have this problem
11 Nov 2013 16:19:42 Bob Indapool posted:
The progress bar opens but doesn't show any progress, the file's bits don't increment at all either (no matter which style of progress type I choose)

the php.ini does have upload progress enabled:
; Enable upload progress tracking in $_SESSION
; Default Value: On
; Development Value: On
; Production Value: On
; php.net/session.upload-progress.enabled
;session.upload_progress.enabled = On

Replies

Replied 12 Nov 2013 10:16:21
12 Nov 2013 10:16:21 Teodor Kuduschiev replied:
Hello Bob,

What is the PHP version you are running on your server? What browser are you having problems with?
Replied 12 Nov 2013 13:09:04
12 Nov 2013 13:09:04 Bob Indapool replied:
PHP v 5.4
IE 10 & 11 also same result in Firefox v25.0
The "Time:" increments (elapsed seconds)
but the bytes stay at 0 / 0 and the progress bar or circle doesn't fill up.
in the Windows style, the copy animation plays, but the progress bar doesn't fill.
Replied 12 Nov 2013 15:59:22
12 Nov 2013 15:59:22 Teodor Kuduschiev replied:
Can you please provide a link to your page to:
Replied 12 Nov 2013 18:41:43
12 Nov 2013 18:41:43 Bob Indapool replied:
link sent.
Replied 13 Nov 2013 10:01:38
13 Nov 2013 10:01:38 Teodor Kuduschiev replied:
Can you please tell me if the same happens when you choose the HTML5 Progress?
Replied 13 Nov 2013 16:27:20
13 Nov 2013 16:27:20 Bob Indapool replied:
HTML5 progress bar is similarly dysfunctional.
Replied 13 Nov 2013 19:27:08
13 Nov 2013 19:27:08 Bob Indapool replied:
FIXED IT!
Turns out, merely turning on upload progress in php.ini is not enough.

There are several other supporting configurations which must also be enabled or set.

Here's the section of php.ini (note the lines without a semicolon at the front
Default Value: On
Development Value: On
Production Value: On
; php.net/session.upload-progress.enabled
session.upload_progress.enabled = On

; Cleanup the progress information as soon as all POST data has been read
; (i.e. upload completed).
Default Value: On
Development Value: On
Production Value: On
; php.net/session.upload-progress.cleanup
session.upload_progress.cleanup = On

; A prefix used for the upload progress key in $_SESSION
Default Value: "upload_progress_"
Development Value: "upload_progress_"
Production Value: "upload_progress_"
; php.net/session.upload-progress.prefix
session.upload_progress.prefix = "upload_progress_"

; The index name (concatenated with the prefix) in $_SESSION
; containing the upload progress information
Default Value: "PHP_SESSION_UPLOAD_PROGRESS"
Development Value: "PHP_SESSION_UPLOAD_PROGRESS"
Production Value: "PHP_SESSION_UPLOAD_PROGRESS"
; php.net/session.upload-progress.name
session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS"

; How frequently the upload progress should be updated.
; Given either in percentages (per-file), or in bytes
Default Value: "1%"
Development Value: "1%"
Production Value: "1%"
; php.net/session.upload-progress.freq
session.upload_progress.freq = "1%"

; The minimum delay between updates, in seconds
Default Value: 1
Development Value: 1
Production Value: 1
; php.net/session.upload-progress.min-freq
session.upload_progress.min_freq = "1"

Reply to this topic