上传时是否可以知道文件大小?所以我可以使用文件大小制作进度条
同时。
<?php
session_start();
$f_name=$_SESSION['f_name']; //but file is still being uploading...
echo filesize($f_name);
?>
最佳答案
这个问题被标记为 javascript,所以我建议使用进度元素和 jquery
http://html5doctor.com/the-progress-element/ http://www.sitepoint.com/html5-javascript-file-upload-progress-bar/
关于php - 使用php上传文件时获取文件大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18451433/