Last post Dec 03, 2014 08:44 PM by Summer - MSFT
Dec 03, 2014 01:15 AM|elmozamil|LINK
I faces a problem when try to upload file by API post method. In the debug mode it work fines but when I publish the solution to my local IIS it don't work. The front-end is implemented using HTML5, CSS3, JQuery so it is not possible to execute upload code
from here, from the form I call the POST API.
Dec 03, 2014 01:36 AM|virender|LINK
What's your file size, May be its problem with httpruntime you need to configure httpruntime in web.config.
Dec 03, 2014 01:42 AM|elmozamil|LINK
it is very small size it is less than 50KB, I think the problem is related to the API. Is it possible for the API to read the local path of the server.
Dec 03, 2014 05:16 AM|gerrylowry|LINK
@elmozamil welcome to forums.asp.net
Whenever i need to upload files in ASP.NET MVC, moderator Mike's instructive article is the first place i start ... you'll find it here:
"ASP.NET MVC Uploading and Downloading Files" http://www.mikesdotnetting.com/article/125/asp-net-mvc-uploading-and-downloading-files
Dec 03, 2014 06:12 PM|Paul Linton|LINK
Show your code.
"It don't work" - Can you provide a little more detail?
Dec 03, 2014 08:44 PM|Summer - MSFT|LINK
Welcome to the ASP.NET forum.
In the debug mode it work fines but when I publish the solution to my local IIS it don't work.
Based on my understanding, I think maybe it is because of the publish IIS.
You could check the article and confirm that you have not missing anything when publish your solution.