views:

1859

answers:

2

Got a simple form, posting to an action... the action takes the data and creates a record in the DB, and copies the image to a directory. Works great on my local dev box.

Upload the form to my host, and the image uploading doesn't work. The form acts as if it's failing the UpdateModel(), but doesn't show any validation messages.

Anyone else experience this? I can post code if you need it...

A: 

I had issues with file upload in ASP.NET MVC until I set the "enctype" attribute of the form to "multipart/form-data".

See this blog post form more info.

Olivier PAYEN
Yea... it's already that enctype.
Chad
A: 

Turns out it was permissions. Setting folder permissions through Filezilla doesn't work. Had to go through my hosts control panel to set permissions.

Working fine now!

Chad