1

I am currently using uploadcare with the plan that would work with s3 upload. I have been reading the api documentation of uploadcare and searched around how to use jQuery ajax to send to my s3 bucket Somehow I just couldn't find the answer to it.

Anyone able to give me a hand with this?

Thanks in advance.

Tsuna
  • 2,098
  • 6
  • 24
  • 46

1 Answers1

1

First off, take a look at this question in their knowledge base. In summary you can use the javascript REST API to achieve that.

The REST API has the method POST /files/ which is obviously what you need. And which I linked to above.

Mekicha
  • 811
  • 9
  • 21
  • I did read these too and that's why I mentioned I have read the `api` documentation. Got authentication error and tried to add authentication into header. in the sample it's using `curl -H "Authorization: Uploadcare.Simple demopublickey:demoprivatekey" \ "https://api.uploadcare.com/files/?stored=true&limit=10&from=5000&ordering=-size"` which I tried adding into my `ajax` `header` which gives me random errors without a proper message which is why I am totally confused – Tsuna Aug 10 '17 at 18:40
  • Ah, I didn't know that. Maybe if you can show a snippet of your code, I can see if I can help further along that line – Mekicha Aug 10 '17 at 19:34
  • if your question about proper authentication within JS, please ask this specifically. there's nothing difficult in making Uploadcare REST APIi calls via AJAX, you just have to understand what you need for that. – Dmitry Mukhin Aug 11 '17 at 09:21