How to change upload directory based on frontend form input name or ID?


I created a frontend form using a plugin which allows logged in users to create draft posts. There are 3 file upload areas. I need 1 of them to use the default public WP media upload folder as usual. But I need the files uploaded via 2nd and 3rd file upload areas to move to a restricted sub folder inside the default WordPress file upload folder. 1 of them allow multiple file uploads.

Important facts:

  1. I have changed the default WP_CONTENT folder and UPLOADS folder using wp-config.php
  2. One of the file upload areas allows multiple file uploads

I’m new to WordPress. I looked around to find an exact solution to my issue. there are a few solution but I not exactly what I’m looking for. Thank you very much.

user197754 2 months 0 Answers 20 views 0

Leave an answer