media library – How to upload images in a specific folder using API


I have installed wordpress plugins Real Media library, Real Physical Media, and Media file renamed. Using this I am able to physically move images and organize images in the upload folder as per categories.
Both these plugins have API –

but they don’t seem to provide any option to upload files.

It means for uploading I still need to use the classic WordPress rest API.
So how do I then physically move the files, do I upload using classic way, and the images get uploaded in the date file structure format, and use a second API call to move those uploaded images? Or directly while uploading itself I can set the destination folder.

Sri Nithya Sharabheshwarananda 11 months 2022-02-26T01:02:09-05:00 0 Answers 0 views 0

Leave an answer