Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

C#
// 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;
 
Share this answer
 
Comments
RaviRanjanKr 31-Dec-11 11:01am    
My 5+

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900