Replies: 1 comment 5 replies
-
From https://docs.directus.io/reference/files/#upload-a-file :
For example (also from that page): import axios from 'axios';
const fileInput = document.querySelector('input[type="file"]');
const formData = new FormData();
formData.append('folder', '35f91753-254b-49ec-8e80-61bd824775dd');
formData.append('file', fileInput.files[0]);
await axios.post('/files', formData); |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to upload with REST API a file into a particular folder and not in the root?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions