All of that stuff needs to be uploaded. Think of the file you uploaded as the coach of a team and all those other files as the players and sports equipment. If you only brought the coach to a game, he/she would be barking orders but there would be no players there to execute those orders.
Specifically if you had an image in your Dreamweaver version of the code, it was pointing at the local image file stored on your computer. Then when you copied your code into Moodle, it was still pointing to that filepath on your computer but that image file was not in Moodle.
So to make it work, you can create a ZIP file of your entire project and then upload that to Moodle so that all the pieces are then in Moodle for your code to point at.