我正在我的网站上上传文件。效果很好。现在我想在上传需要时间时显示进度条。 我可以选择通过ajax上传,但我不能使用ajax。是否可以在不使用ajax且不干扰代码的情况下进行显示。
$image = new SimpleImage();
$objdjs= new Djs;
if(isset($_POST['btnprofile']))
{
if($_FILES['profilegallery']['name']!=""){
$res1 = $objdjs->upload_file($_FILES['profilegallery'],PATH_PROFILE_IMAGE);
$image->load(PATH_PROFILE_IMAGE.$res1);
$image->resize(46,36);
$image->save(PATH_PROFILE_IMAGE."thumb_".$res1);
$title=trim($_POST['title1']);
$ins = $objdjs->insertprofile($uid,$title,$res1);
$messageProfile="<span style='color:#336600'>Image has been added in profile gallery</span>";
echo "<script>window.location='listprofilegallery.php?ms=true';</script>";
任何帮助都会得到帮助 谢谢
最佳答案
关于php - 在php中不使用ajax上传图像时的进度条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4448227/