views:

92

answers:

1

Hi folks, this is really weird. I am able to upload files and save it in database when working locally on my MVC project (using localhost) but when the project is deployed on the server, i am getting directory not found exception (System.IO.DirectoryNotFound). It lists my local file path in the error log on the server.

I am trying to save the file content using Request.Files collection & its contents as a byte array.

Any ideas?

TIA

A: 

Issue Resolved! It turned out to be an incorrect url in the ACTION attribute of the FORM tag. No more HTTP 405 errors & the file is uploaded successfully.

SoftwareGeek