doupian6118 2017-03-28 11:32
浏览 45

Drupal 7不上传图像样式

I have a drupal 7 hosted on windows azure as web app.

When I upload an image into a content, my original image is stored in the files folder but its corresponding image styles are not stored (example in the thumbnail folder).

I tried this:

  • Permissions 777/775
  • Comment the following lines in the htaccess located in the files folder:
#Options None
#Options + FollowSymLinks

I have the impression that it is Azure which blocks the writing of the files because the htaccess can be changed only in its own editor and not in my ftp.

  • 写回答

1条回答 默认 最新

  • duanmo6937 2017-03-29 09:41
    关注

    Since you deployed your app to Azure Web Apps, Azure would use IIS to host your app, and this is running on Windows Server machines. So htaceess and permissions 777/775 don't work on Azure. Without any error message and how you deploy your Drupal app, it's hard to figure out what's wrong there.

    However, I can successfully deploy Drupal 7 with template Acquia Drupal 7 on MySQL from Azure marketplace. I also tested to upload an image into a content and both of original and thumbnail image are stored properly. Maybe you can have a try.

    • Choose template Acquia Drupal 7 on MySQL to create an Azure Web App.

    enter image description here

    • Upload image was worked fine.

    enter image description here

    评论

报告相同问题?

悬赏问题

  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启