How to save media files under custom folder without changing wp-config.php or changing media settings

Here is simple function to create your own sub directory for every upload.

function kv_custom_image_dir( $pathdata ) {
    $subdir="/uploads_img".$pathdata['subdir'];
    $pathdata['path'] = str_replace($pathdata['subdir'], $subdir, $pathdata['path']);
    $pathdata['url'] = str_replace($pathdata['subdir'], $subdir, $pathdata['url']);
    $pathdata['subdir'] = str_replace($pathdata['subdir'], $subdir, $pathdata['subdir']);
    return $pathdata;
}
add_filter( 'upload_dir', 'kv_custom_image_dir' );

From my above code, I changed my images folder as uploads_img, you can change yours likewise.

If you want more information, I wrote a tutorial for changing upload directories for every custom upload, take a look at my blog: