You need to enable Activity completion and set the completion condition for activity 1 (which should be an assignment) to "submit" and then use Restrict access on the activity 2 to open it up once the file has been submitted. Those blue links take you to documentation explaining the features.
Teaching with Moodle
moodle 3.8 - activity restriction
This discussion has been locked so you can no longer reply to it.