Add Ui Element copy, move File

Hi everybody.

I am integrating the box into my website. The integration has been completed. I searched the documentation to add the function to copy or move files to another folder but there was none. Do I have any solution for this problem?

Thank you very much!

I need copy or move function like

Hi @doremun :slight_smile:

To copy a file, you can read the documentation here:

If you need to copy the file to a new directory, then you have to use the parent parameter. The parent will be the folder ID of the destination folder.

If you need to move the file, then you need to use the PUT method :

It will allow you to move the file, rename it, lock it or create a shared link.

I hope it helps !

Thanks for your solution,
I have a small question, with API of your solution, how do I integrate buttons into Content Explorer’s existing ui. because in this document there are Parameters(canPreview, canDownload, canDelete,…)
It will look like this image (I draw Move or copy)

I think the options Move and Copy are not available in the Content UI.
You can only achieve this using API calls.

1 Like

Thank you so much, :smiling_face:

Ah. I read a question in box-ui-element’s GitHub. I’m wondering when it will be available ? Support Move/Copy in Content Explorer · Issue #141 · box/box-ui-elements · GitHub