Photos/screenshots of an error can be helpful, but it also helps to provide the complete code. Posting the code helps us help you better!
When you enter a code, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
Okay so turns out my Windows file directory had it set where the file extensions were invisible so when I had named it “dog.jpg” it was actually named “dog.jpg.jpg”
I turned on the file extensions and noticed it as “dog.jpg.jpg” so I just deleted the extra .jpg and it worked!!
Also, thank you for telling me about the backticks