I am using php 5.3.2 with the uploadprogress extension, so that during upload using the Zend Framework Get the progress bar possible. Even the demo given with the Zendo is not working. Z. in the example example -
if (isset ($ _gET ['uploadId'])) {set_include_path (actual path (dianman (__ file__). '/../../../ Library ') .PATH_SEPARATOR. Get_include_path ()); Need_once 'Zend / ProgressBar.php'; Need_once 'Zend / ProgressBar / Adapter / JsPull.php'; Need_once 'Zend / session / namespace.php'; $ Data = uploadprogress_get_info ($ _GET ['uploadId']); $ Byte Total = ($ data === zero? 0: $ data ['bytes_total']); $ Bytes uploaded = ($ data === empty? 0: $ data ['bytes upload']); $ Adapter = New Zend_ProgressBar_Adapter_JsPull (); $ Progress = new Zend_ProgressBar ($ adapter, 0, $ byte total, 'upload progress'); If ($ Bytes total === $ bytes are uploaded) {$ progressBar-> End (); } And {$ progress-> updated ($ bytes uploaded); }
}
uploadprogress_get_info always taps I thought there was something wrong with my code, so I downloaded a sample of available work, but in that case Also always get blank space in uploadprogress_get_info.
My uploading configuration values
Uploading Support Supported
Version 1.0.1
uploadprogress.file.contents_template / tmp / upload_contents_ % S
uploadprogress.file.filename_template /tmp/upt_%s.txt
uploadprogress.get_contents 1
During the googling I have uploaded the upload extension with something The problem is, but I'm testing it locally at Suhosin Patch 0.9.9.1
Does it mean to test it on the local host? Try uploading to a remote host, or check a larger file (make sure you did the upload_max_filesize
and post_max_size
earlier).
Comments
Post a Comment