Home » Java » Getting the file has from html upload [on hold]

Getting the file has from html upload [on hold]

Posted by: admin October 21, 2018 Leave a comment

Questions:

I’ve written a Java program that calculates the sha256 hash of a file, using the file’s path.

Now, I’m trying to calculate the file hash from a file that a user has uploaded to a website that I’ve written with HTML5 and PHP.

I’ve tried using Applet to embed the Java program, but it’s giving me some issues as it appears to struggle using the actual uploaded file.

Are there any other ways to embed a Java program, or is there a better way to calculate a file’s hash key using HTML or Javascript?

Answers: