需要帮助使用php将多个图像上传到不同的文件夹并将文件名存储在mysql数据库中

迈克尔·阿博吉迪(Michael Agbogidi)

我有一个代码,可将不同的图像文件上传到服务器上的不同文件夹,并将文件名存储在mysql数据库的不同字段中。我已经编写了代码及其工作正常。我需要的帮助是如何编写代码,这样一个代码块可以重新调整多个图像的大小,但仍可以将多个图像上传到它们各自的不同文件夹中,而不是使用多个代码块重新调整大小并上传每个图像并且同时仍将不同的文件名存储在mysql数据库的不同字段中。任何帮助将不胜感激。

以下是php代码:

<?php
function getExtension($str) {

         $i = strrpos($str,".");
         if (!$i) { return ""; } 

         $l = strlen($str) - $i;
         $ext = substr($str,$i+1,$l);
         return $ext;
 }


define ("MAX_SIZE","2048");

 $errors=0;

{
 $image =$_FILES["passport"]["name"];
 $uploadedfile = $_FILES['passport']['tmp_name'];

  if ($image) 
  {
  $filename = stripslashes($_FILES['passport']['name']);
  $extension = getExtension($filename);
  $extension = strtolower($extension);


 if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif")) 
  {
    echo ' Unknown Image extension ';
    $errors=1;
  }
 else
  {
   $size=filesize($_FILES['passport']['tmp_name']);

   // Check if file was uploaded
if( ! isset($_FILES['passport']) || ! is_uploaded_file($_FILES['passport']['tmp_name']))
        exit('No file uploaded or Your passport has exceeded the size limit of 2Mb. Click the back botton on your browser to re-enter the right size of image.');

  if ($size > MAX_SIZE*1024)
  {
    echo "Your passport image has exceeded the size limit";
    $errors=1;
  }

    if($extension=="jpg" || $extension=="jpeg" )
    {
    $uploadedfile = $_FILES['passport']['tmp_name'];
    $src = imagecreatefromjpeg($uploadedfile);
    }
    else if($extension=="png")
    {
    $uploadedfile = $_FILES['passport']['tmp_name'];
    $src = imagecreatefrompng($uploadedfile);
    }
    else 
    {
    $src = imagecreatefromgif($uploadedfile);
    }

list($width,$height)=getimagesize($uploadedfile);

$newwidth=1120;
$newheight=($height/$width)*$newwidth;
$tmp=imagecreatetruecolor($newwidth,$newheight);

imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);

//$set['passport'] = "'" . $pix . "'";
$pix= $_FILES['passport']['name'];
$kaboom = explode(".", $pix);
$pixExt = end($kaboom);
$passport= rand()."_".time().".".$pixExt;

$target = "passport/". $passport;

imagejpeg($tmp,$target,100);
}
  }
}

{
 $image =$_FILES["birthcert"]["name"];
 $uploadedfile = $_FILES['birthcert']['tmp_name'];

  if ($image) 
  {
  $filename = stripslashes($_FILES['birthcert']['name']);
  $extension = getExtension($filename);
  $extension = strtolower($extension);


 if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif")) 
  {
    echo ' Unknown Image extension ';
    $errors=1;
  }
 else
  {
   $size=filesize($_FILES['birthcert']['tmp_name']);

   // Check if file was uploaded
if( ! isset($_FILES['birthcert']) || ! is_uploaded_file($_FILES['birthcert']['tmp_name']))
        exit('No file uploaded or Your birth certificate has exceeded the size limit of 2Mb. Click the back botton on your browser to re-enter the right size of image.');

  if ($size > MAX_SIZE*1024)
  {
    echo "Your birth certificate image has exceeded the size limit";
    $errors=1;
  }

    if($extension=="jpg" || $extension=="jpeg" )
    {
    $uploadedfile = $_FILES['birthcert']['tmp_name'];
    $src = imagecreatefromjpeg($uploadedfile);
    }
    else if($extension=="png")
    {
    $uploadedfile = $_FILES['birthcert']['tmp_name'];
    $src = imagecreatefrompng($uploadedfile);
    }
    else 
    {
    $src = imagecreatefromgif($uploadedfile);
    }

list($width,$height)=getimagesize($uploadedfile);

$newwidth=1120;
$newheight=($height/$width)*$newwidth;
$tmp=imagecreatetruecolor($newwidth,$newheight);

imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);

//$set['passport'] = "'" . $pix . "'";
$pix= $_FILES['birthcert']['name'];
$kaboom = explode(".", $pix);
$pixExt = end($kaboom);
$birthcert= rand()."_".time().".".$pixExt;

$target = "birthcert/". $birthcert;

imagejpeg($tmp,$target,100);

}
  }
}

{
 $image =$_FILES["lastacadreport"]["name"];
 $uploadedfile = $_FILES['lastacadreport']['tmp_name'];

  if ($image) 
  {
  $filename = stripslashes($_FILES['lastacadreport']['name']);
  $extension = getExtension($filename);
  $extension = strtolower($extension);


 if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif")) 
  {
    echo ' Unknown Image extension ';
    $errors=1;
  }
 else
  {
   $size=filesize($_FILES['lastacadreport']['tmp_name']);

   // Check if file was uploaded
if( ! isset($_FILES['lastacadreport']) || ! is_uploaded_file($_FILES['lastacadreport']['tmp_name']))
        exit('No file uploaded or Your last academic report has exceeded the size limit of 2Mb. Click the back botton on your browser to re-enter the right size of image.');

  if ($size > MAX_SIZE*1024)
  {
    echo "Your last academic report image has exceeded the size limit";
    $errors=1;
  }

    if($extension=="jpg" || $extension=="jpeg" )
    {
    $uploadedfile = $_FILES['lastacadreport']['tmp_name'];
    $src = imagecreatefromjpeg($uploadedfile);
    }
    else if($extension=="png")
    {
    $uploadedfile = $_FILES['lastacadreport']['tmp_name'];
    $src = imagecreatefrompng($uploadedfile);
    }
    else 
    {
    $src = imagecreatefromgif($uploadedfile);
    }

list($width,$height)=getimagesize($uploadedfile);

$newwidth=1120;
$newheight=($height/$width)*$newwidth;
$tmp=imagecreatetruecolor($newwidth,$newheight);

imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);

//$set['passport'] = "'" . $pix . "'";
$pix= $_FILES['lastacadreport']['name'];
$kaboom = explode(".", $pix);
$pixExt = end($kaboom);
$lastacadreport= rand()."_".time().".".$pixExt;

$target = "lastacadreport/". $lastacadreport;

imagejpeg($tmp,$target,100);

}
  }
}

{
 $image =$_FILES["testimonial"]["name"];
 $uploadedfile = $_FILES['testimonial']['tmp_name'];

  if ($image) 
  {
  $filename = stripslashes($_FILES['testimonial']['name']);
  $extension = getExtension($filename);
  $extension = strtolower($extension);


 if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif")) 
  {
    echo ' Unknown Image extension ';
    $errors=1;
  }
 else
  {
   $size=filesize($_FILES['testimonial']['tmp_name']);

   // Check if file was uploaded
if( ! isset($_FILES['testimonial']) || ! is_uploaded_file($_FILES['testimonial']['tmp_name']))
        exit('No file uploaded or Your testimonial has exceeded the size limit of 2Mb. Click the back botton on your browser to re-enter the right size of image.');

  if ($size > MAX_SIZE*1024)
  {
    echo "Your testimonial image has exceeded the size limit";
    $errors=1;
  }

    if($extension=="jpg" || $extension=="jpeg" )
    {
    $uploadedfile = $_FILES['testimonial']['tmp_name'];
    $src = imagecreatefromjpeg($uploadedfile);
    }
    else if($extension=="png")
    {
    $uploadedfile = $_FILES['testimonial']['tmp_name'];
    $src = imagecreatefrompng($uploadedfile);
    }
    else 
    {
    $src = imagecreatefromgif($uploadedfile);
    }

list($width,$height)=getimagesize($uploadedfile);

$newwidth=1120;
$newheight=($height/$width)*$newwidth;
$tmp=imagecreatetruecolor($newwidth,$newheight);

imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);

//$set['passport'] = "'" . $pix . "'";
$pix= $_FILES['testimonial']['name'];
$kaboom = explode(".", $pix);
$pixExt = end($kaboom);
$testimonial= rand()."_".time().".".$pixExt;

$target = "testimonial/". $testimonial;

imagejpeg($tmp,$target,100);

}
  }
}

{
 $image =$_FILES["lastresult"]["name"];
 $uploadedfile = $_FILES['lastresult']['tmp_name'];

  if ($image) 
  {
  $filename = stripslashes($_FILES['lastresult']['name']);
  $extension = getExtension($filename);
  $extension = strtolower($extension);


 if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif")) 
  {
    echo ' Unknown Image extension ';
    $errors=1;
  }
 else
  {
   $size=filesize($_FILES['lastresult']['tmp_name']);

   // Check if file was uploaded
if( ! isset($_FILES['lastresult']) || ! is_uploaded_file($_FILES['lastresult']['tmp_name']))
        exit('No file uploaded or Your last result has exceeded the size limit of 2Mb. Click the back botton on your browser to re-enter the right size of image.');

  if ($size > MAX_SIZE*1024)
  {
    echo "Your last result image has exceeded the size limit";
    $errors=1;
  }

    if($extension=="jpg" || $extension=="jpeg" )
    {
    $uploadedfile = $_FILES['lastresult']['tmp_name'];
    $src = imagecreatefromjpeg($uploadedfile);
    }
    else if($extension=="png")
    {
    $uploadedfile = $_FILES['lastresult']['tmp_name'];
    $src = imagecreatefrompng($uploadedfile);
    }
    else 
    {
    $src = imagecreatefromgif($uploadedfile);
    }

list($width,$height)=getimagesize($uploadedfile);

$newwidth=1120;
$newheight=($height/$width)*$newwidth;
$tmp=imagecreatetruecolor($newwidth,$newheight);

imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);

//$set['passport'] = "'" . $pix . "'";
$pix= $_FILES['lastresult']['name'];
$kaboom = explode(".", $pix);
$pixExt = end($kaboom);
$lastresult= rand()."_".time().".".$pixExt;

$target = "lastresult/". $lastresult;

imagejpeg($tmp,$target,100);

}
  }
}

{
 $image =$_FILES["transfercert"]["name"];
 $uploadedfile = $_FILES['transfercert']['tmp_name'];

  if ($image) 
  {
  $filename = stripslashes($_FILES['transfercert']['name']);
  $extension = getExtension($filename);
  $extension = strtolower($extension);


 if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif")) 
  {
    echo ' Unknown Image extension ';
    $errors=1;
  }
 else
  {
   $size=filesize($_FILES['transfercert']['tmp_name']);

   // Check if file was uploaded
if( ! isset($_FILES['transfercert']) || ! is_uploaded_file($_FILES['transfercert']['tmp_name']))
        exit('No file uploaded or Your transfer certificate has exceeded the size limit of 2Mb. Click the back botton on your browser to re-enter the right size of image.');

  if ($size > MAX_SIZE*1024)
  {
    echo "Your transfer certificate image has exceeded the size limit";
    $errors=1;
  }

    if($extension=="jpg" || $extension=="jpeg" )
    {
    $uploadedfile = $_FILES['transfercert']['tmp_name'];
    $src = imagecreatefromjpeg($uploadedfile);
    }
    else if($extension=="png")
    {
    $uploadedfile = $_FILES['transfercert']['tmp_name'];
    $src = imagecreatefrompng($uploadedfile);
    }
    else 
    {
    $src = imagecreatefromgif($uploadedfile);
    }

list($width,$height)=getimagesize($uploadedfile);

$newwidth=1120;
$newheight=($height/$width)*$newwidth;
$tmp=imagecreatetruecolor($newwidth,$newheight);

imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);

//$set['passport'] = "'" . $pix . "'";
$pix= $_FILES['transfercert']['name'];
$kaboom = explode(".", $pix);
$pixExt = end($kaboom);
$transfercert= rand()."_".time().".".$pixExt;

$target = "transfercert/". $transfercert;

imagejpeg($tmp,$target,100);

}
  }
imagedestroy($src);
imagedestroy($tmp);
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "onlineapp")) {
  $insertSQL = sprintf("INSERT INTO wp1_onlineform (surname, othernames, sex, dateofbirth, placeofbirth, stateoforigin, nameofparent, occupationofparent, officeadd, officephone, homephone, homeaddress, previousschool, addofprevschl, highestclass, admissionclass, passport, birthcert, acadreport, testimonial, lastresult, transfercert) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, '$passport', '$birthcert', '$lastacadreport', '$testimonial', '$lastresult', '$transfercert')",
                       GetSQLValueString($_POST['surname'], "text"),
                       GetSQLValueString($_POST['othernames'], "text"),
                       GetSQLValueString($_POST['sex'], "text"),
                       GetSQLValueString($_POST['dob'], "text"),
                       GetSQLValueString($_POST['placeofbirth'], "text"),
                       GetSQLValueString($_POST['state'], "text"),
                       GetSQLValueString($_POST['parentname'], "text"),
                       GetSQLValueString($_POST['occupation'], "text"),
                       GetSQLValueString($_POST['officeaddress'], "text"),
                       GetSQLValueString($_POST['officephone'], "text"),
                       GetSQLValueString($_POST['homephone'], "text"),
                       GetSQLValueString($_POST['homeaddress'], "text"),
                       GetSQLValueString($_POST['prevschoolname'], "text"),
                       GetSQLValueString($_POST['prevschooladd'], "text"),
                       GetSQLValueString($_POST['highestclass'], "text"),
                       GetSQLValueString($_POST['admissionclass'], "text"));

  mysql_select_db($database_connPacific, $connPacific);
  $Result1 = mysql_query($insertSQL, $connPacific) or die(mysql_error());

  $insertGoTo = "confirm.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $insertGoTo));
}
?>

这是表格的代码:

<form action="<?php echo $editFormAction; ?>" method="POST" enctype="multipart/form-data" name="onlineapp">
              <table width="760" border="0" cellspacing="0" cellpadding="10">
                <tr>
                  <td width="276" id="maintext">Surname:</td>
                  <td width="444" id="maintext2"><label for="surname"></label>
                  <input name="surname" type="text" class="textfield" id="surname" size="45"></td>
                </tr>
                <tr>
                  <td id="maintext">Other names:</td>
                  <td id="maintext2"><input name="othernames" type="text" class="textfield" id="othernames" size="45"></td>
                </tr>
                <tr>
                  <td id="maintext">Sex:</td>
                  <td id="maintext2"><select name="sex" class="textfield" id="sex">
                    <option selected>- Select One -</option>
                    <option value="Male">Male</option>
                    <option value="Female">Female</option>
                  </select></td>
                </tr>
                <tr>
                  <td id="maintext">Date of Birth:</td>
                  <td id="maintext2"><input name="dob" type="text" class="textfield" id="dob" size="20"> 
                    (dd-mm-yyyy)</td>
                </tr>
                <tr>
                  <td id="maintext">Place of Birth:</td>
                  <td id="maintext2"><input name="placeofbirth" type="text" class="textfield" id="placeofbirth" size="30"></td>
                </tr>
                <tr>
                  <td id="maintext">State of Origin:</td>
                  <td id="maintext2"><input name="state" type="text" class="textfield" id="state" size="30"></td>
                </tr>
                <tr>
                  <td id="maintext">Name of Parent/Guardian:</td>
                  <td id="maintext2"><input name="parentname" type="text" class="textfield" id="parentname" size="45"></td>
                </tr>
                <tr>
                  <td id="maintext">Occupation of Parent/Guardian:</td>
                  <td><input name="occupation" type="text" class="textfield" id="occupation" size="45"></td>
                </tr>
                <tr>
                  <td id="maintext">Office Address  of Parent/Guardian:</td>
                  <td id="maintext2"><input name="officeaddress" type="text" class="textfield" id="officeaddress" size="70"></td>
                </tr>
                <tr>
                  <td id="maintext">Office Phone:</td>
                  <td id="maintext2"><input name="officephone" type="text" class="textfield" id="officephone" size="30"></td>
                </tr>
                <tr>
                  <td id="maintext">Home Phone:</td>
                  <td id="maintext2"><input name="homephone" type="text" class="textfield" id="homephone" size="30"></td>
                </tr>
                <tr>
                  <td id="maintext">Home Address</td>
                  <td id="maintext2"><input name="homeaddress" type="text" class="textfield" id="homeaddress" size="70"></td>
                </tr>
                <tr>
                  <td id="maintext">Name of Previous School:</td>
                  <td id="maintext2"><input name="prevschoolname" type="text" class="textfield" id="prevschoolname" size="45"></td>
                </tr>
                <tr>
                  <td id="maintext">Address of Previous School:</td>
                  <td id="maintext2"><input name="prevschooladd" type="text" class="textfield" id="prevschooladd" size="70"></td>
                </tr>
                <tr>
                  <td id="maintext">Highest Clsss Passed at Previous School:</td>
                  <td id="maintext2"><input name="highestclass" type="text" class="textfield" id="highestclass" size="30"></td>
                </tr>
                <tr>
                  <td id="maintext">Class to Which Admission is being Sougth:</td>
                  <td id="maintext2"><input name="admissionclass" type="text" class="textfield" id="admissionclass" size="30"></td>
                </tr>
                <tr>
                  <td id="maintext">&nbsp;</td>
                  <td id="maintext2"><label for="passport"><strong>Note: All uploads must be below 2Mb</strong></label></td>
                </tr>
                <tr>
                  <td id="maintext">Passport Photo:</td>
                  <td id="maintext2"><input type="file" name="passport" id="passport"></td>
                </tr>
                <tr>
                  <td id="maintext">Birth Certificate:</td>
                  <td id="maintext2"><input type="file" name="birthcert" id="birthcert"></td>
                </tr>
                <tr>
                  <td id="maintext">Last academic report from child&rsquo;s current school:</td>
                  <td id="maintext2"><input type="file" name="lastacadreport" id="lastacadreport"></td>
                </tr>
                <tr>
                  <td id="maintext">Character testimonial from current school:</td>
                  <td id="maintext2"><input type="file" name="testimonial" id="testimonial"></td>
                </tr>
                <tr>
                  <td id="maintext">&nbsp;</td>
                  <td id="maintext2"><strong>For Transfer Students Only</strong></td>
                </tr>
                <tr>
                  <td id="maintext">Last Result from Former School::</td>
                  <td id="maintext2"><input type="file" name="lastresult" id="lastresult"></td>
                </tr>
                <tr>
                  <td id="maintext">Transfer Certificate From Former School:</td>
                  <td id="maintext2"><input type="file" name="transfercert" id="transfercert"></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td id="maintext2"><input name="button" type="submit" class="button" id="button" value="Submit Form"></td>
                </tr>
              </table>
              <input type="hidden" name="MM_insert" value="onlineapp">
            </form>
渔民

创建一个接受发布FILE的函数,并在调整大小并写入后返回一个文件信息数组。然后在文件验证后针对每个发布文件调用该文件。如果它返回一个无错误的信息数组。那么这里的数据库人员是一个例子

function imageStaff($file){
// here resizing an writing staff

// return an array with index error and file information if no error then set this index to empty
}

//call here with post file
if(valid($_FILES['your_file')){ // valid is another function of yours to check if file size is ok, or check uploaded file_type etc
  $array = imageStaff($_FILES['your_file']);
 if(empty($array['error'])){
   //do the db staff
  }

}

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Codeigniter - 需要帮助将图片上传到文件夹和数据库

来自分类Dev

访问作为文件名存储在数据库中但存储在laravel公共文件夹中的多个图像

来自分类Dev

使用php下载文件,文件存储在文件夹中,文件名存储在数据库中

来自分类Dev

上传到GCP存储或使用bucket.getFiles()之后,将文件名保存在数据库中

来自分类Dev

将图像上传到文件并将信息上传到mysql数据库

来自分类Dev

Web2py将静态文件上传到数据库的文件名不同

来自分类Dev

如何在“编辑视图”中显示文件名?文件名存储在图像文件夹中,也存储在数据库中

来自分类Dev

将图像上传到服务器并将图像路径存储在mysql数据库中

来自分类Dev

拖放图像并将其上传到多个文件夹

来自分类Dev

将图像保存在文件夹中,并将路径存储到数据库,然后将其检索到gridview

来自分类Dev

无法使用 PHP 将多个文件上传到文件夹中

来自分类Dev

从指定的文件夹自动将CSV文件上传到数据库。

来自分类Dev

如何将图像文件夹路径存储到 MYSQL 数据库中并通过 PHP 和 XAMPP 在网页中显示图像?

来自分类Dev

为什么将文件名和上传路径存储在数据库中?

来自分类Dev

使用Multer上传文件并将其短暂存储在内存中,然后解析并上传到数据库

来自分类Dev

无法使用文件上传将图像上传到node.js中的特定文件夹

来自分类Dev

将图像上传到服务器的最佳方法是什么?保存在数据库还是服务器文件夹中?

来自分类Dev

无法使用PHP将文件上传到文件夹

来自分类Dev

将图像上传到Spring MVC中的文件夹

来自分类Dev

使用PHP将CSV文件上传到mysql数据库

来自分类Dev

无法将 pdf 文件上传到 mysql 数据库并使用 PHP 检索它?

来自分类Dev

使用jqueryajax将图像上传到文件夹

来自分类Dev

PHP:将公共文件上传到Google存储桶中的文件夹

来自分类Dev

将多个文件上传到服务器并将路径复制到数据库

来自分类Dev

如何将pdf文件和图像文件上传到flask中的不同上传文件夹?

来自分类Dev

如何上传多个文件,将其路径存储在mysql数据库行的不同列中

来自分类Dev

如何上传多个文件,将其路径存储在mysql数据库行的不同列中

来自分类Dev

图像通过表单上传到文件夹中,但数据库中的名称不是图像名称。相反,它是 XAMPP tmp 文件的路径?

来自分类Dev

使用 Laravel 5.8 将图像上传到两个不同的文件夹位置

Related 相关文章

  1. 1

    Codeigniter - 需要帮助将图片上传到文件夹和数据库

  2. 2

    访问作为文件名存储在数据库中但存储在laravel公共文件夹中的多个图像

  3. 3

    使用php下载文件,文件存储在文件夹中,文件名存储在数据库中

  4. 4

    上传到GCP存储或使用bucket.getFiles()之后,将文件名保存在数据库中

  5. 5

    将图像上传到文件并将信息上传到mysql数据库

  6. 6

    Web2py将静态文件上传到数据库的文件名不同

  7. 7

    如何在“编辑视图”中显示文件名?文件名存储在图像文件夹中,也存储在数据库中

  8. 8

    将图像上传到服务器并将图像路径存储在mysql数据库中

  9. 9

    拖放图像并将其上传到多个文件夹

  10. 10

    将图像保存在文件夹中,并将路径存储到数据库,然后将其检索到gridview

  11. 11

    无法使用 PHP 将多个文件上传到文件夹中

  12. 12

    从指定的文件夹自动将CSV文件上传到数据库。

  13. 13

    如何将图像文件夹路径存储到 MYSQL 数据库中并通过 PHP 和 XAMPP 在网页中显示图像?

  14. 14

    为什么将文件名和上传路径存储在数据库中?

  15. 15

    使用Multer上传文件并将其短暂存储在内存中,然后解析并上传到数据库

  16. 16

    无法使用文件上传将图像上传到node.js中的特定文件夹

  17. 17

    将图像上传到服务器的最佳方法是什么?保存在数据库还是服务器文件夹中?

  18. 18

    无法使用PHP将文件上传到文件夹

  19. 19

    将图像上传到Spring MVC中的文件夹

  20. 20

    使用PHP将CSV文件上传到mysql数据库

  21. 21

    无法将 pdf 文件上传到 mysql 数据库并使用 PHP 检索它?

  22. 22

    使用jqueryajax将图像上传到文件夹

  23. 23

    PHP:将公共文件上传到Google存储桶中的文件夹

  24. 24

    将多个文件上传到服务器并将路径复制到数据库

  25. 25

    如何将pdf文件和图像文件上传到flask中的不同上传文件夹?

  26. 26

    如何上传多个文件,将其路径存储在mysql数据库行的不同列中

  27. 27

    如何上传多个文件,将其路径存储在mysql数据库行的不同列中

  28. 28

    图像通过表单上传到文件夹中,但数据库中的名称不是图像名称。相反,它是 XAMPP tmp 文件的路径?

  29. 29

    使用 Laravel 5.8 将图像上传到两个不同的文件夹位置

热门标签

归档