How May I change my media files directory public/upload to other directory

How May I change my media files directory public/upload to other directory (Like some where on server).
please help on this, we are deploying our Strapi app on server using kubernetes and docker

@DMehaffy @webbist

Make your own provider for uploads

@webbist let’s suppose I have one directory on server. app/uploads the how cam we sync with source code on Strapi, or directly we can change some where path only?

You could achieve this with environmental variables for the different environments, as long as Strapi is aware and you have a migration script to change the pathing in the database.

I am unsure why you would want to change it between environments though.

@webbist I want to do this .public folder for media library uploads, wanna to change path for media library uploads

Please help me on this, where we can change path in Strapi source code like middleware or else