'error to open file'

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

ASP_Guy
Posts: 1
Joined: Fri Apr 01, 2005 7:40 pm

'error to open file'

Post by ASP_Guy »

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???
b.e.wilson
Posts: 26
Joined: Wed Mar 09, 2005 7:44 pm

Post by b.e.wilson »

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.