使用asp.net在rootpath中上传文件 [英] upload file in rootpath using asp.net

查看:58
本文介绍了使用asp.net在rootpath中上传文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用asp.net,c#.net,vs2008.

我想使用asp.net中的rootpath上传文件夹中的文件.
如何在网站的rootpath中创建文件夹.
以及如何在rootpath文件夹中上传文件.

任何想法,将不胜感激.

mukesh

Hi All,

I am using asp.net,c#.net,vs2008.

I want to upload file in folder using rootpath in asp.net.
how to create folder in rootpath in website.
and how can upload file in rootpath folder.

any idea , help will be appreciated.

mukesh

推荐答案

// set ffmpeg path, make sure ffmpeg folder exist on root of your web application.
upload1.FFMPEGPath = RootPath + "\\ffmpeg\\ffmpeg.exe";
// set flvtool path for setting meta information for flv videos, make sure flvtool folder available on root of your web application.
upload1.FLVToolPath = RootPath + "\\flvtool\\flvtool2.exe";
// set directory path where original video will store after uploading.
upload1.OriginalPath = RootPath + "\\contents\\original";
// set directory path where flv, mp4, wmv, mp3 files will store after publishing.
upload1.FLVPath = RootPath + "\\contents\\flv";
// set directory path where thumbs file will store after capturing from video.
upload1.ThumbPath = RootPath + "\\contents\\thumbs";
// set watermark directly path where transparent watermark image exist. Note ffmpeg must support and include vhook/watermark.dll to post watermark on video. more detail
upload1.WatermarkPath = RootPath + "\\contents\\watermark";
//set transparent watermark image filename.
upload1.WatermarkImage ="watermark.gif";
// set allowable video, audio file extensions.
upload1.VideoAllowableExtensions = "mp4,avi,wmv,flv,mpg,mpeg,mov";
// set max allowable video uploading size in MB
upload1.MaxVideoSize = 10;
// set whether to generate single image or multiple images to create story board for video. In case of multiple images. Video Uploader will generate 15 images from start to end of video.
upload1.isMultipleThumbs = false;


这篇关于使用asp.net在rootpath中上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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