473,395 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Uploading file more than 5 mb, sound files, mediafiles.

Hello all,

In my ASP.Net , C# web Application I have used the traditional upload code
i.e. HTTP Method and it works fine for files and images up to 5 MB but once
the size of file is more than 5 MB it gives a error mostly time out error
and also uploading sound files (.mp3, .wma, .dat) is not allowed.

So I want a solution to this problem, I have heard about the FTP upload but
don't have much knowledge about it.

So can any one help me getting what is the way to use FTP upload method in
my code which allows me to upload files with large size and also sound files
and media files. If any other way through which I can achieve this.

Please suggest me a good method for this.

Thanks in advance

Vishal.


Nov 18 '05 #1
4 4386
You can add or modify the following section in your web.config file:

<configuration>
<system.web>
<httpRuntime maxRequestLength="4096" />
</system.web>
</configuration>

The above value (4096 KB) is the default maximum upload file size.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"news microsoft" <vi***********@solversa.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hello all,

In my ASP.Net , C# web Application I have used the traditional upload code
i.e. HTTP Method and it works fine for files and images up to 5 MB but once the size of file is more than 5 MB it gives a error mostly time out error
and also uploading sound files (.mp3, .wma, .dat) is not allowed.

So I want a solution to this problem, I have heard about the FTP upload but don't have much knowledge about it.

So can any one help me getting what is the way to use FTP upload method in
my code which allows me to upload files with large size and also sound files and media files. If any other way through which I can achieve this.

Please suggest me a good method for this.

Thanks in advance

Vishal.

Nov 18 '05 #2
AFN
Why can't you upload MP3 or WMA files (assuming the size is small enough)?
This concerns me, because I need to do the same, just for audio files, soon.
"news microsoft" <vi***********@solversa.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hello all,

In my ASP.Net , C# web Application I have used the traditional upload code
i.e. HTTP Method and it works fine for files and images up to 5 MB but once the size of file is more than 5 MB it gives a error mostly time out error
and also uploading sound files (.mp3, .wma, .dat) is not allowed.

So I want a solution to this problem, I have heard about the FTP upload but don't have much knowledge about it.

So can any one help me getting what is the way to use FTP upload method in
my code which allows me to upload files with large size and also sound files and media files. If any other way through which I can achieve this.

Please suggest me a good method for this.

Thanks in advance

Vishal.

Nov 18 '05 #3
The solution has nothing to do with FTP or errors with media files of any
type. It has to do with ASP.NET's built in upload limit.

http://www.tek-tips.com/gfaqs.cfm/le...d/855/fid/3217

--
HTH

Kyril Magnos
"I'm not a developer anymore, I'm a software engineer now!" :-)

"AFN" <DE************************@yahoo.com> wrote in message
news:8p*****************@twister.socal.rr.com...
| Why can't you upload MP3 or WMA files (assuming the size is small enough)?
| This concerns me, because I need to do the same, just for audio files,
soon.
|
|
| "news microsoft" <vi***********@solversa.com> wrote in message
| news:%2******************@TK2MSFTNGP12.phx.gbl...
| > Hello all,
| >
| >
| >
| > In my ASP.Net , C# web Application I have used the traditional upload
code
| > i.e. HTTP Method and it works fine for files and images up to 5 MB but
| once
| > the size of file is more than 5 MB it gives a error mostly time out
error
| > and also uploading sound files (.mp3, .wma, .dat) is not allowed.
| >
| >
| >
| > So I want a solution to this problem, I have heard about the FTP upload
| but
| > don't have much knowledge about it.
| >
| >
| >
| > So can any one help me getting what is the way to use FTP upload method
in
| > my code which allows me to upload files with large size and also sound
| files
| > and media files. If any other way through which I can achieve this.
| >
| >
| >
| > Please suggest me a good method for this.
| >
| >
| >
| > Thanks in advance
| >
| >
| >
| > Vishal.
| >
| >
| >
| >
|
|
Nov 18 '05 #4
hi vishal,
you can use WININET functions in your application and create a small componennt.
Example is:
[DllImport("wininet.dll",SetLastError=true,EntryPoi nt="FtpPutFile")]
private static extern bool FtpPutFile( int hConnect,string lpszLocalFile,string lpszNewRemoteFile,int dwFlags,int dwContext);

first create connection then call this method and close connection.
Happy Coding :)

Vivek Kumbhojkar
************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: John | last post by:
Hello. If I wanted to make a website of sound files that are playable within the actual webpage, but people visiting the site can't save, or see the filenames so they can download from the site,...
2
by: Sathyaish | last post by:
I am using MCI (winmm.dll) to read, record and playback sound. For now, I am doing this with disk files instead of realtime doing it straight from the memory. If I want to stream/relay/transmit...
2
by: news microsoft | last post by:
Hello all, In my ASP.Net , C# web Application I have used the traditional upload code i.e. HTTP Method and it works fine for files and images up to 5 MB but once the size of file is more...
1
by: Chris Zopers | last post by:
Hello, I've made some functionality where a user can upload files to our server through an ASP.NET page. For selecting the file, I use the <input: type=file> tag. For files that are less than 3...
1
by: wenqiang7 | last post by:
I am encountering a very strang problem with file uploading in my ASP.Net page. When we try to upload certain file, we'll get an error msg of "Cannot find server or DNS Error". We are running...
0
by: Mika M | last post by:
Hi! I'm uploading file(s) over internet like... My.Computer.Network.UploadFile("C:\file1.txt", "ftp://some.domain.com/file1.txt", "MyUID", "MyPWD", False, 1000) ....and this is working...
3
by: mra | last post by:
Hi I Need Help For Uploading And Down Loading Files Using Internet Tansfer Control. When Assign The Name Of File In A Variable, It Does Not Execute The State Change Event. When I Give The File Name...
6
by: laredotornado | last post by:
Hi, Is there a cross-browser way to play short (< 25K) sound files without spawning new windows or embedding any visual controls on the page? I would like to click a button and hear my short...
1
by: jimmylee | last post by:
Hi All, Please help me . I am getting aspSmartUploadfile error while uploading file I have already instrall aspSmartUpload.dll and aspSmartUploadutil.dll. how to solve this error. thanks....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.