solved
i want create progress bar uploading file in site.
read session.upload_progress.enabled
, tried use this
php.ini:
session.upload_progress.enabled = on session.upload_progress.cleanup = on session.upload_progress.prefix = "upload_progress_" session.upload_progress.name = "video" session.upload_progress.freq = "1%" session.upload_progress.min_freq = "1"
then, put in form:
<input type="hidden" name="video" value="video" />
and did ajax request php file information , since didn't work tried debug , put in php file:
session_start(); print_r($_session);
and page is:
array ( )
so, searched problem , got answer: php upload progress in php 5.4 not working. session variables not set
1) have php version:5.6.8
2) session initialized can see in code
3) don't run fastcgi run php xampp on windows
what problem , how can fix ?
do not put name="video" in input file. searched php manual (http://php.net/manual/en/session.upload-progress.php)
it says put name="<?php echo ini_get("session.upload_progress.name"); ?>" <input type="file" name="file1" /> <input type="file" name="file2" /> , put <input type="submit" />
and should put in exact same order above.
Comments
Post a Comment