weixin_33725722 2019-01-26 06:32 采纳率: 0%
浏览 72

如何解决图片上传问题

I'm using Google cloud storage for hosting my website, i have code to upload the cover image like Facebook once user select the image it will upload to the server and same time it will fetch the image.

i gave full access to only that cover image folder, if i gave like that any problem will come like hacking. Please give me an advice my ways good or not?

if (!is_dir($directoryName)) {
                $oldmask = umask(0);
                mkdir($directoryName, 0777);
                umask($oldmask);
            }
  • 写回答

1条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 SQL查询一个表格的数据
      • ¥20 PCL库处理梯子点云获取其几何参数
      • ¥30 医疗资料ROI mask转YOLO的bounding box
      • ¥15 docx4j word转pdf
      • ¥15 MATLAB-GUI数据图表
      • ¥15 Qt Vs2017使用Charts异常
      • ¥15 将位图选入内存DC失败,但没有出错信息
      • ¥20 如何从 .html url 启动/激活 .py 文件(sql debug)
      • ¥15 c#调用soap出错,soapui中可以
      • ¥100 CBIS-DDSM kaggle 资料处理