Re: Another File Upload question



I feared so...Do you know of any third party (and hopefully free) ActiveX
control I could use?


"Kevin Spencer" wrote:

> Hi ricardo,
>
> Wiothout some sort of ActiveX control or Java applet on the client side,
> there is no way to determine the length of the file prior to upload. The
> input only contains the path to the file to be uploaded on the client.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> ..Net Developer
> The sun never sets on
> the Kingdom of Heaven
>
> "ricardo corbacho perez" <ricardo corbacho perez@xxxxxxxxxxxxxxxxxxxxxxxxx>
> wrote in message news:143AF2EB-71AC-46F5-8D19-76DD7347F9E7@xxxxxxxxxxxxxxxx
> > Hi there,
> > I've been reading all I could find on the control 'input type=file' and
> > all
> > the trouble that it comes when uploading large binary files (>4MB) to a DB
> > server or server path.
> >
> > I've seen plenty of examples about it, and they all agree that to make
> > possible the upload of those files, it's mandatory to change the
> > web.config
> > (or machine.config) for the maxRequestLength attribute of the
> > <httpRuntime>
> > element.
> >
> > What I'd need though, is a way for NOT allowing content larger than those
> > 4MB to be uploaded. I've tryed the following on my code, but it's not
> > working (probably because I've also read that when submitting the webform,
> > the content is already sent to the server, thus if you send 50MB you'll
> > have
> > to wait until the server returns an error)
> >
> > if( FileInputAttachment.PostedFile.ContentLength ) > 1024
> > {
> > //change a label text to display an error
> > }
> >
> > Is there a way of querying for the PostedFile.ContentLength BEFORE posting
> > the data to the server? This way I could warn the users not to upload
> > files
> > larger than a MB or so...
> >
> > Thanks!!
> >
> >
>
>
>
.



Relevant Pages

  • Re: File Upload User Control
    ... browser clears the upload input box (not allowed to set by server). ... | an InputFile HTML Server Control, an Upload button and a message label. ... | other form elements. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: File upload w/o HtmlInputFile.
    ... After reviewing the control, I found the ... "Upload via RFC1867 POST or HTTP PUT" ... The ActiveX control is from Software Artisans, ... > server side as you would do if it were HTML input file tags... ...
    (microsoft.public.dotnet.framework.aspnet)
  • File Upload Speed
    ... I am having issues with the File Upload control for sending files to the ... The speed of the upload is often between 20kbs and 40kbs. ... at work to the server, ... The slow speeds are when using ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: File Upload User Control
    ... Bijoy ... after the upload, the page is redisplayed, in which case ... > browser clears the upload input box (not allowed to set by server). ... > | an InputFile HTML Server Control, an Upload button and a message label. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Asp.net Important Topics.
    ... ASP.NET server controls contained within the page. ... A custom server control is ... can also perform validation using client script. ... Where does the Web page belong in the .NET Framework class hierarchy? ...
    (microsoft.public.dotnet.framework.aspnet)

Loading