Hi, I would like to know if there is any documentation on using media picker to upload files? Doc here Atlaskit by Atlassian have little info on what APIs are expected to be implemented on server side to upload files. There are various API calls to upload files e.g. /upload/createWithFiles, /chunk/probe, /chunk/, /upload//chunks and /file/upload. I could not find in docs what are request params and expected responses for these APIs.
Can someone please explain these APIs or point to the doc somewhere?
Hi @parag, 9 months later and I’m now wondering the same thing too!
We love using editor-core but we’re now stuck at adding support for uploading files and images because of the lack of examples and documentation for mediaProvider props.
However, I was able to find this documentation after spending some time looking at editor-core source codes and inspecting browser network tab (really CSI work) which clearly shows how to work with the endpoints you mentioned. It seems that we need to request for a clientId and secret before we can even use those APIs in production. I wrote to them yesterday but still no reply.
Do let me know if you’ve come around this or found another way.
Cheers.
@ucchishta.sivaguru, were you able to get client id and secret from Atlassian to use media API? Looks like I have exactly same problem
Hi @LukaszWiatrak, unfortunately no. I’ve pinged them the second time but still no reply. I don’t think I’ll get one…
Hi @ucchishta.sivaguru, we were not able to use it successfully, so added simple file uploader component for our purpose.
So do you guy mean we have to use their server’s API?
Hey @parag , how were you able to use simple file uploader? I am trying to implement it for my own project. Can you please share some snippet or code or pointers? I am trying to use just upload image as base 64 and insert it into the editor.
bump up !!
If I am not wrong they did a external component ( not using the editor core ) to upload files and images.
Hi @CarlosSandoval, yes we have written simple custom component using react-dropzone, can check the examples at Live Examples · React Dropzone Uploader.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.