Hi… I’m using ionic2 + REST api.
I try to upload image taken from Camera.
Upload using REST api file upload … success and return fileURL like below…
{“fileURL”:“https://api.backendless.com/06973966-d94f-5ced-ff60-60220932f300/v1/files/profile/1466926162527.jpg”}
After that I save the fileURL to Users’s property => profilePic.
When i check Files storage in directory ‘/profile’, the file is not exist.
But when i check the Users’s property => profilePic, there is fileURL like this…
https://api.backendless.com/06973966-d94f-5ced-ff60-60220932f300/v1/files/profile/1466926162527.jpg
For more information…Here are my Headers response
**General**
Request URL:https://api.backendless.com/v1/files/profile/1466926162527.jpg
Request Method:POST
Status Code:200 OK
Remote Address:149.56.79.124:443
**Response Headers**
HTTP/1.1 200 OK
Server: nginx/1.8.1
Date: Sun, 26 Jun 2016 07:27:28 GMT
Content-Type: text/plain; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: file://
Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE, PATCH
Access-Control-Allow-Headers: Origin, application-id, application-type, Content-Type, secret-key, request, user-token
Content-Encoding: gzip
Expires: Thu, 01 Jan 1970 00:00:01 GMT
Cache-Control: no-cache
Cache-Control: : no-store, no-cache, must-revalidate, private
Pragma: : no-cache
**Request Headers**
POST /v1/files/profile/1466926162527.jpg HTTP/1.1
Host: api.backendless.com
Connection: keep-alive
Content-Length: 95
application-type: REST
Origin: file://
User-Agent: Mozilla/5.0 (Linux; Android 5.0; SM-N900 Build/LRX21V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/51.0.2704.81 Mobile Safari/537.36
Content-Type: multipart/form-data
application-id: 06973966-D94F-5CED-FF60-60220932F300
secret-key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
X-DevTools-Emulate-Network-Conditions-Client-Id: 59B8EB13-513A-4959-B05B-95ED4CD21B5D
user-token: 43688E4B-5616-215E-FFF5-84146990EB00
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en-US;q=0.8
X-Requested-With: com.ionicframework.socity217267
**Here are the Response**
{"fileURL":"https://api.backendless.com/06973966-d94f-5ced-ff60-60220932f300/v1/files/profile/1466926162527.jpg"}
Thanks in advance for ur help.