Storage API + Services 3: How to work together? I am trying to set up a site that will be storing a large amount of images. I am using Storage API module for that and It is working fine through web.

Now I need a REST Service to upload images.
I am trying with the default file POST endpoint of the Services module:

--&gt; POST http://example.com/api/file http/1.1
Content-Type: application/json
Content-Length: 343901
Cookie: ..............
X-Csrf-Token: .........
{"file":"iVBOR.......Jggg==","filename":"myimage.png","uri":"storage-field-images://myimage.png"}
--&gt; END POST (343901-byte body)



&lt;-- 200 OK http://example.com/api/file (888ms)
Content-Type: application/json
{"fid":"81","uri":"http://example.com/api/file/81"}
&lt;-- END HTTP (74-byte body)


But http://example.com/api/file/81 is responding me:

{"fid":"81","filename":"myimage.png","uri":"public://myimage.png".........


(Not the same uri that I sent in the request)

Am I missing something in the resquest? Or do I have to develop a new endpoint to manage that?
replace uri with filepath
--&gt; POST http://example.com/api/file http/1.1
Content-Type: application/json
Content-Length: 343901
Cookie: ..............
X-Csrf-Token: .........
{&quot;file&quot;:&quot;iVBOR.......Jggg==&quot;,&quot;filename&quot;:&quot;myimage.png&quot;,&quot;filepath&quot;:&quot;public://storage-field-images/myimage.png&quot;}
--&gt; END POST (343901-byte body)