This is my code to enqueue scripts. The later one with title yourscript2 is working, but the first one with title upload is not working:
add_action( 'wp_enqueue_scripts', 'add_my_script' );
function add_my_script() {
wp_enqueue_script(
'upload',
get_template_directory_uri() . '/js/upload.js',
array( 'jquery' )
);
wp_enqueue_script(
'yourscript2',
get_template_directory_uri() . '/js/text.js',
array( 'jquery' )
);
}
upload.