Home » Posts tagged "file"

Archive for the 'file' Tag

Multiple file upload – VB.NET

Code behind only Imports System.IO Imports System.Web.UI Imports System.Data.Sql Imports System.Data.SqlClient ‘define public classes/share them on page Public ImgUpConf1 As String ‘displays img after success. upload Public ImgUpConf2 As String ‘ ” Public BadImgFormat As String ‘passing banned file ext msg to page Public NoImage As String = “no_image.jpg” ‘default image no image jpg Public […]

VB.NET – Single file upload

WUI View Home | Upload File | Close Window Enter requested information: Your name X File title: File category: ComedyPlease select…Sci-FiWild West File type: DivX Video FilePlease select…Windows movie videoAudio Video Interleave File Select a file to upload: Additional note: Designer view (expand) < %@ Import Namespace=”System.IO” %> < %@ Import Namespace=”System.Data.SqlClient” %> < %@ […]

Maximum request length exceeded

Having issues uploading files? Getting message like “maximum request length exceeded?” The solution to this is simple; add the following code to your configuration file: <configuration> <system.web> <httpRuntime maxRequestLength=”35000″ /> </system.web> </configuration> * set the maxRequestLength to whatever your need might be.