Hi,
My understanding is that in order to upload a file to a package using the API, this file needs to reside in the “wp-content/uploads/download-manager-files” directory. That is a problem for me because I would like to upload files that reside on my computer.
Is there a workaround that would allow me to attach local files to a package using the API?
For example, I was thinking that maybe I could first upload my local file to “wp-content/uploads/download-manager-files” (using some API), and then attach it to the package. Is this possible? How can I upload a file to this directory using the API?
Any other solutions are welcome.
Best regards,
Roco