Sorry if this has been asked before, but I couldn't find anything like it.
I have been trying to build an ASP app that will allow a user to browse for an image on their hard drive, and save it to a directory on the server.
I have a File Input field on my form that passes the path and filename to ASP and in turn to GflAx. When I try to run the script, which uses loadBitmap, I get the error.
The path I am trying to save from is C:\Documents and Settings\es2792\My Documents\My Pictures\
I thought it was because of the spaces in the directory names, nut I created a new directory a couple of levels into the root drive(C:) that had a space(C:\Photos\New Directory\) and it worked fine.
What gives???
'error to open file'
Moderators: helmut, XnTriq, xnview
-
- Posts: 26
- Joined: Wed Mar 09, 2005 7:44 pm
I'm not sure I understand your question. You are trying to open a file on the client computer directly from the server-side script?
You need to use a different mechanism of moving the file to the server first, then open it there. No script can open a file on the client's computer; that would be a massive security problem.
Also, remember to give IUSR_machinename write access to the directory on the server where the file is going.
Look at aspin.com to find an app or code for uploading files to the server.
You need to use a different mechanism of moving the file to the server first, then open it there. No script can open a file on the client's computer; that would be a massive security problem.
Also, remember to give IUSR_machinename write access to the directory on the server where the file is going.
Look at aspin.com to find an app or code for uploading files to the server.