Is there a way to dynamically get to your uploads folder?

Take a look at wp_upload_dir here https://developer.wordpress.org/reference/functions/wp_upload_dir/

$upload_dir = wp_upload_dir();

var_dump( $upload_dir );

/*
$upload_dir will comprise of the following return values:

'path'    - (string) Base directory and subdirectory or full path to upload directory.
'url'     - (string) Base URL and subdirectory or absolute URL to upload directory.
'subdir'  - (string) Subdirectory if uploads use year/month folders option is on.
'basedir' - (string) Path without subdir.
'baseurl' - (string) URL path without subdir.
'error'   - (string|false) False or error message.
*/