dongqiaolong9034 2015-06-05 08:51
浏览 24
已采纳

禁止访问数据库中的图像

I'm sending to an app the location of an image: http:\/\/192.168.0.193\/Symfony\/src\/OBCarsTest2Bundle\/Resources\/public\/images\/cars\/car2.jpg

her is the json object i am sending:

{"carInfo":
    {"name":"Mercedes",
     "model":"CLA-Class",
     "carvin":"ffgf",
     "price":"5556",
     "currency":"L.L",
     "id":2,
     "path":"http:\/\/192.168.0.193\/Symfony\/src\/OBCarsTest2Bundle\/Resources\/public\/images\/cars\/car2.jpg"}
}

but it gets an error :

Forbidden

You don't have permission to access /Symfony/src/OBCarsTest2Bundle/Resources/public/images/cars/car2.jpg
`on this server.`    
Apache/2.4.9 (Win64) PHP/5.5.12 Server at 192.168.0.193 Port 80

Any idea on how to solve this?

For more details i am using symfony framework.

  • 写回答

1条回答 默认 最新

  • dongqing904999 2015-06-05 08:57
    关注

    please store the image in web folder not inside the bundle ..

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于大棚监测的pcb板设计
  • ¥20 sim800c模块 at指令及平台
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计