JavaScript and client side scripting.
Moderator: General Moderators
jinxjinx
Forum Newbie
Posts: 3 Joined: Tue Oct 30, 2007 1:26 pm
Post
by jinxjinx » Tue Oct 30, 2007 1:29 pm
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
Jenk
DevNet Master
Posts: 3587 Joined: Mon Sep 19, 2005 6:24 am
Location: London
Post
by Jenk » Tue Oct 30, 2007 1:53 pm
No, PHP cannot do this. You'd have to ask the user to upload the file, then perform the hash.
jinxjinx
Forum Newbie
Posts: 3 Joined: Tue Oct 30, 2007 1:26 pm
Post
by jinxjinx » Tue Oct 30, 2007 2:08 pm
is there any web technology that can do this without installing something on the users system?
Kieran Huggins
DevNet Master
Posts: 3635 Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:
Post
by Kieran Huggins » Tue Oct 30, 2007 4:28 pm
I doubt it, since you'd need local filesystem access, which is a major security no-no.
Jenk
DevNet Master
Posts: 3587 Joined: Mon Sep 19, 2005 6:24 am
Location: London
Post
by Jenk » Tue Oct 30, 2007 6:15 pm
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.
jinxjinx
Forum Newbie
Posts: 3 Joined: Tue Oct 30, 2007 1:26 pm
Post
by jinxjinx » Wed Oct 31, 2007 12:18 am
that sucks. the activex would be a good solution but only works on IE...thats lame...
theres gota be a way....
jmut
Forum Regular
Posts: 945 Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:
Post
by jmut » Wed Oct 31, 2007 9:42 am
with java applet/ java web start it needs to be signed to be able to access local resources.