Page 1 of 1
client side file processing?
Posted: Tue Oct 30, 2007 1:29 pm
by jinxjinx
I need to upload the hash of a file from my users.
Is there anyway php can do this? I dont want to upload the entire file and then take the hash...
what is the best solution?
Thanks
Posted: Tue Oct 30, 2007 1:53 pm
by Jenk
No, PHP cannot do this. You'd have to ask the user to upload the file, then perform the hash.
Posted: Tue Oct 30, 2007 2:08 pm
by jinxjinx
is there any web technology that can do this without installing something on the users system?
Posted: Tue Oct 30, 2007 4:28 pm
by Kieran Huggins
I doubt it, since you'd need local filesystem access, which is a major security no-no.
Posted: Tue Oct 30, 2007 6:15 pm
by Jenk
You could create an ActiveX applet to perform the task, and use .Net - but that will only work with IE and will also prompt the user with a "WARNING: Insecure blah blah" message, and unless you are coding for a closed market where you can inform users to accept this, then it's only going to reduce your user base.
Posted: Wed Oct 31, 2007 12:18 am
by jinxjinx
that sucks. the activex would be a good solution but only works on IE...thats lame...
theres gota be a way....
Posted: Wed Oct 31, 2007 12:20 am
by Kieran Huggins
Java applet?
Posted: Wed Oct 31, 2007 9:42 am
by jmut
with java applet/ java web start it needs to be signed to be able to access local resources.