如何保存&编辑多个文件上传? [英] How to save & edit multiple file upload?

查看:69
本文介绍了如何保存&编辑多个文件上传?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想知道如何保存三个文件上传的图像路径?

我有三个文件上传,在循环保存文件时,如何设法捕获文件三个文件上传的名称。



例如:< input name =file_0type =file_0/>

< input name =file_1type =file_1/>

< input name =file_2type =file_2/>

Hello, i will like to know how to save the image path of three file upload?
I have three file uploads and while looping to save the files, how can you manage to capture the file name of the three file upload.

For example: <input name="file_0" type="file_0" />
<input name="file_1" type="file_1" />
<input name="file_2" type="file_2" />

推荐答案

此处用于上传文件的代码,包括获取文件名。



http://stackoverflow.com/questions/15680629/mvc-4-razor-file-upload [ ^ ]



你出于安全原因,无法在现代浏览器中获取原始文件的路径。
Code here for uploading files, including getting the filenames.

http://stackoverflow.com/questions/15680629/mvc-4-razor-file-upload[^]

You can't get the path of the original file in modern browsers for security reasons.


这篇关于如何保存&amp;编辑多个文件上传?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆