所以，长话短说，我正在通过从角度应用程序上传文件到Drupal，并获得响应/ url / etc没有问题。 我的问题是，如何启用要在REST上载的图像样式中创建的图像样式？我在image_styles数组中收到一个空响应。我假设它可能不是我需要添加到POST请求中的东西，但很高兴在需要时添加POST请求代码。
So, long story short, I'm uploading files to drupal through services from an angular app, and getting a response/url/etc no problem. My question is, how do I enable image styles to be created on REST upload from services? I'm receiving an empty response in the image_styles array. I am assuming it likely isn't something I need to add into the POST request, but happy to add POST request code if needed.
I am coming up a little short on my google-fu on this one, and any help appreciated!
the image created with the style when you request a page displaying that image_style So you have to call it in code.
The default generation method only creates images when they are requested by a user's browser.
image_style_url Returns the URL for an image derivative given a style and image path
code sample :
// $file object from file_load($fid) image_style_url('style name', $file->uri)