Start a new topic
Answered

REST API Upload Error

Hi, I'm trying to upload using REST API.


I can get the URL from storage.googleapis.com wherein I should do a 'PUT' request with my image file.

I've encountered some errors in uploading the file on the given URL:


Error:

XMLHttpRequest cannot load http://storage.googleapis.com/xxxxxxxxxxx. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:xxxxx' is therefore not allowed access.



Any help would be appreciated.



Best Answer
Jestoni,

This link should help with File uploads using REST:
http://devcenter.kinvey.com/rest/guides/files#top

Thanks,
Pranav
Kinvey Support

 

1 Comment

Answer
Jestoni,

This link should help with File uploads using REST:
http://devcenter.kinvey.com/rest/guides/files#top

Thanks,
Pranav
Kinvey Support

 

Login or Signup to post a comment