I uploaded my test questions to a website (so I could cheat), but then thought better of it and didn't use the answers. How to proceed? So, I was taking my exam, and there were two questions I really had no clue on, and I was running out of time on. So I quickly went to a website and posted pictures of my exam questions and asked for answers. I immediately regretted doing so, and went to delete them, when I realized, it wasn’t possible. I then started freaking out, shaking, crying, etc. I know it was wrong, and I really don’t know why I did it. I just didn’t want to fail. They haven't seen it yet, and I hope they don’t ever, I didn’t even use it on the test, and was too frazzled to even fully finish the exam. I don’t know what to do, and my heart has been racing for 12 hours now, and I haven’t been able to sleep. The schools policy is essentially that the teacher will decide what happens, unless I already have a record, where the school will decide to expel me. I know I haven’t even been caught or anything, but I just want to do the right thing here, because I know it was wrong. But I also don’t want to possibly get expelled.
Interesting. You are actually not asking an ethics question here; that one you could answer yourself, and very quickly.
I think your question has two aspects:

You are asking for psychological advice. You are suffering because your mighty superego just doesn't shut up. If that's any consolation, to me this means you are a good person. But you would like to come clear in order to have moral and mental closure.
You are (that's the on-topic part) asking for academic advice: You are interested in the likely consequences because they play a role in whether you will decide to confess. If it's likely that you'd be expelled you'd rather try to sit it out. If the likely reaction is stern admonition and a grade reduction you are perfectly willing to trade that in exchange for moral and hence psychological relief.

I cannot really answer the academic question; it probably depends a lot on the country, the school and the teacher, none of which you can reasonably disclose.
But if there are clear guidelines — whatever they are — it may not make a great difference whether they find out or whether you confess. Or it may work to your disadvantage: Unless your name or a unique identifier is on the photos you posted (and if you were that stupid you don't deserve your degree anyway) they will have a hard time proving that it was your exam, and not somebody else's. Unless you go and confess! All jurisdictions accept the right for the accused to be silent. No jurisdiction requires you to indict yourself. This is the time to call on this privilege and observe the prime directive for all accused: Do not talk.
My advice: Take this as a lesson. You'll remember it for the rest of your life. Don't go and serve them your own head on a silver platter. We all have done things in the past we were not proud of; we all have probably hurt people emotionally by acting less nicely than we wish we had. If we could, we would go back and fix it. But here, no damage has been done; there is literally nothing to fix here except your future behavior.
Unless you can't bear being a &quot;pragmatic coward&quot;, I'd simply live with having been an idiot, not do it again and hope not to get caught this one time.