Click to See Complete Forum and Search --> : Problem using activex


jrenzi
05-10-2006, 10:30 AM
I'm coming to a solution where I need to use PHP + AJAX to automatically upload files to a web server.

I need to use Filesystem Object in Javascript in order to access user local files. The problem is that when it tries to create the object, the browser show me this error:
"Automation server can't create object"

So it can't create the object.

The same script works fine if I access it from the local file, but when I tried to access through apache I get this error.

I've been googling and found that I should have the dll corresponding to FileSystemObject (scrrun.dll) in Apache. I've tried in http.conf without luck.

Anyone knows how I should include this dll in Apache so I can use it?

Thanks in advance

Weedpacket
05-11-2006, 03:10 AM
I know my browser doesn't have a Filesystem Object.... maybe that has something to do with it? (Good thing, too: imagine the security risks of exposing your local filesystem to any old code that happened to wander in off the net!)

JPnyc
05-11-2006, 08:53 AM
I thought the fso was an object belonging to the windows OS, not the browser. But he's right, with the new security settings instantiating an FSO is going to be preempted by the SP2 pack, not to mention you need activeX to create an FSO with javascript, so it would only have worked in IE anyway.

MarkR
05-11-2006, 10:41 AM
Creating arbritary activex objects is not going to work in client-side Javascript, EVEN if you're using MSIE.

Its security model doesn't (for obvious reasons) let you create any object which is not marked "safe" in some way. This is very few classes, I hope.

Mark

jrenzi
05-11-2006, 11:32 AM
I've found that works by reducing the security level, and allowing to automatically accept not secure activex objects .

But I think that could be daungerous.

So I think I'll go with something different.

Do you have any suggestion? Maybe I can do this with java or flash

JPnyc
05-11-2006, 04:44 PM
I think the issue will be "automatically". I don't think there's anyway to get around newer security settings, regardless of the language used. The user will almost certainly get a prompt no matter what.