file upload "THe Given path's format is not supported"

D

Darrel

(I posted this previously in the wrong NG.)

I get this error when trying to run a file upload function on my client's
server.

It works fine on my local server.

I can also create a directory via my code, but not upload a file.

I'm using asp.net 1.1 and forms authentication.

The client server's folder is set up for the user ASPNET to have write
access.

Anything else I should look at? Any idea what has to happen to get this to
work?

-Darrel
 
P

PJ on Development

Hi,

How are you saving the file?

If you're concatenating the FileName property of the UploadFile
control remember that the FileName property contains the full path of
the user's file.

I do have a simple upload control in my site, take a look and, perhaps
it would serve you better.

Regards,

Paulo Santos
http://pjondevelopment.50webs.com
 
D

Darrel

How are you saving the file?

myimage.SaveAs(savePath & filename)
I do have a simple upload control in my site, take a look and, perhaps
it would serve you better.

Thanks. To clarify, however, my script works just fine. On *my* server. It's
only only on the client's server that it does not work.

-Darrel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top