Max7891 Ответов: 1

Как я загружаю одно изображение на сервер с помощью angualrjs и ASP.NET MVC?


 0
down vote
favorite
	

I'm very new to AngularJs I could manage to develop CRUD SPA using Angular and ASP.NET MVC , I wanted to upload single image with every record I add in my database beside store the image path in every record something like product id ,name, quantity and the image path so I can upload product image with every new product I add, the thing is I did not use any forms in my application so I don't think I would change my whole code just to use forms and submit botton at least not for now, anyway I finished the whole application but I got really confused when I made search on how to upload single image, tutorial on this pretty much not exist, I read some developers talk about plugins and either it's very complicated example with multi-images/files upload or nothing , nothing on uploading single image in Angular and ASP.NET MVC, anyway can help or have link for very simple demo single image ? or anyone know plugins I can use for single image upload with good documentation or simple demos, again I repeat I just want to upload the image to a folder on the server beside I want to store the path of the image in the database that's all I would appreciate it any help guys



Что я уже пробовал:

Я сделал поиск и нашел несколько сообщений о загрузке мультифайлов с помощью плагинов, но нет никакой документации о том, как использовать или простые демо-версии большинство демо-версий r очень сложны, а некоторые коды r даже длиннее, чем все мое приложение :/

1 Ответов

Рейтинг:
0

Harpreet05Kaur

ПРИВЕТ,

Пожалуйста, обратитесь к следующей ссылке, она вам поможет.
Загрузка файлов с помощью AngularJS и ASP.NET MVC5[^]