client side file processing?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
jinxjinx
Forum Newbie
Posts: 3
Joined: Tue Oct 30, 2007 1:26 pm

client side file processing?

Post 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
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

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 »

is there any web technology that can do this without installing something on the users system?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

I doubt it, since you'd need local filesystem access, which is a major security no-no.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post 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.
jinxjinx
Forum Newbie
Posts: 3
Joined: Tue Oct 30, 2007 1:26 pm

Post by jinxjinx »

that sucks. the activex would be a good solution but only works on IE...thats lame...
theres gota be a way....
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Java applet?
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Post by jmut »

with java applet/ java web start it needs to be signed to be able to access local resources.
Post Reply