Re: [WebDNA] Max upload file size

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105302
interpreted = N
texte = http://www.uploadify.com/ I've used uploadify to varying degrees of success... when it works it's=20 awesome. It's flash-front / php-back based, but can be made to play nice=20 with webdna or more simply, let uploadify use php to work its magic and o= nce=20 all files are in a specific location you could use WebDNA to handle it fr= om=20 there. Overall, it's not very secure right out of the box since a person = can=20 view source in the browser and see where the files are going, but a=20 workaround is to only let trusted users use it (behind password protectio= n,=20 etc). -Dan -------------------------------------------------- From: "Govinda" Sent: Friday, June 11, 2010 3:30 PM To: Subject: Re: [WebDNA] Max upload file size > I never had a need, so have not tried.. but why not hack something usi= ng=20 > [ListMIMEHeaders]... ? > Possible? > > On Jun 11, 2010, at 6:18 PM, Marc Thompson wrote: > >> In ColdFusion one can use CGI.CONTENT_LENGTH in the http request head= er=20 >> to check the file size of an incoming file and branch in your code=20 >> accordingly. >> Can't think of an equivalent using WebDNA? >> >> Marc >> >> On 6/11/2010 3:36 PM, Govinda wrote: >>> otherwise you have to look at [fileinfo...][Size][/fileinfo] after t= he >>> fact and then discard the too-huge file.. alert the user, etc.. but >>> then you did not prevent the server load in teh first place. >>> -G >>> >>> On Jun 11, 2010, at 7:24 AM, Kenneth Grome wrote: >>> >>>> Since WebDNA resides on the server it is impossible for WebDNA to >>>> know how large the file is until AFTER it's been uploaded. If you >>>> want to prevent large files from being uploaded you must detect the >>>> file size on the client machine -- via Javascript. >>>> >>>> Sincerely, >>>> Kenneth Grome >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>> Hi >>>>> >>>>> I have a form post using enctype=3D"multipart/form-data=B2 that per= mits >>>>> for a >>>>> file upload of a resume/CV. As can be expected, it would be helpful >>>>> if we >>>>> could limit the size of the files that people are attempting to >>>>> upload, as >>>>> the site is pretty busy. In theory a whole bunch of people could >>>>> all be >>>>> trying to upload massive files at the same time, and the darn >>>>> server may >>>>> just keel over. >>>>> >>>>> I=B9m sure that someone must have come up against this before? >>>>> >>>>> Could be a feature request for there to be a max post like PHP... >>>>> If there >>>>> isn=B9t already but I just don=B9t know about it. >>>>> >>>>> While I=B9m here.... Anyone know of a nice form submit disable that >>>>> works in >>>>> both IE and Firefox? I=B9m using; >>>>> >>>>> >" >>>>> onSubmit=3D"this.value=3D'Please >>>>> Wait...'; this.disabled=3Dtrue;" /> >>>>> Which works in IE but not Firefox. >>>>> >>>>> Previously had; >>>>> >" >>>>> onSubmit=3D"this.disabled=3Dtrue;return true;" /> >>>>> Which worked in Firefox but not IE. >>>>> >>>>> >>>>> >>>>> Thanks all, > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dpics&category(= 8 >=20 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Max upload file size (Lawrence 2010)
  2. Re: [WebDNA] Max upload file size ("Dan Strong" 2010)
  3. Re: [WebDNA] Max upload file size (Govinda 2010)
  4. Re: [WebDNA] Max upload file size (Marc Thompson 2010)
  5. Re: [WebDNA] Max upload file size (Govinda 2010)
  6. Re: [WebDNA] Max upload file size (Kenneth Grome 2010)
  7. [WebDNA] Max upload file size ("Diane Blackmore (Cohesion)" 2010)
http://www.uploadify.com/ I've used uploadify to varying degrees of success... when it works it's=20 awesome. It's flash-front / php-back based, but can be made to play nice=20 with webdna or more simply, let uploadify use php to work its magic and o= nce=20 all files are in a specific location you could use WebDNA to handle it fr= om=20 there. Overall, it's not very secure right out of the box since a person = can=20 view source in the browser and see where the files are going, but a=20 workaround is to only let trusted users use it (behind password protectio= n,=20 etc). -Dan -------------------------------------------------- From: "Govinda" Sent: Friday, June 11, 2010 3:30 PM To: Subject: Re: [WebDNA] Max upload file size > I never had a need, so have not tried.. but why not hack something usi= ng=20 > [listmimeheaders]... ? > Possible? > > On Jun 11, 2010, at 6:18 PM, Marc Thompson wrote: > >> In ColdFusion one can use CGI.CONTENT_LENGTH in the http request head= er=20 >> to check the file size of an incoming file and branch in your code=20 >> accordingly. >> Can't think of an equivalent using WebDNA? >> >> Marc >> >> On 6/11/2010 3:36 PM, Govinda wrote: >>> otherwise you have to look at [fileinfo...][Size][/fileinfo] after t= he >>> fact and then discard the too-huge file.. alert the user, etc.. but >>> then you did not prevent the server load in teh first place. >>> -G >>> >>> On Jun 11, 2010, at 7:24 AM, Kenneth Grome wrote: >>> >>>> Since WebDNA resides on the server it is impossible for WebDNA to >>>> know how large the file is until AFTER it's been uploaded. If you >>>> want to prevent large files from being uploaded you must detect the >>>> file size on the client machine -- via Javascript. >>>> >>>> Sincerely, >>>> Kenneth Grome >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>> Hi >>>>> >>>>> I have a form post using enctype=3D"multipart/form-data=B2 that per= mits >>>>> for a >>>>> file upload of a resume/CV. As can be expected, it would be helpful >>>>> if we >>>>> could limit the size of the files that people are attempting to >>>>> upload, as >>>>> the site is pretty busy. In theory a whole bunch of people could >>>>> all be >>>>> trying to upload massive files at the same time, and the darn >>>>> server may >>>>> just keel over. >>>>> >>>>> I=B9m sure that someone must have come up against this before? >>>>> >>>>> Could be a feature request for there to be a max post like PHP... >>>>> If there >>>>> isn=B9t already but I just don=B9t know about it. >>>>> >>>>> While I=B9m here.... Anyone know of a nice form submit disable that >>>>> works in >>>>> both IE and Firefox? I=B9m using; >>>>> >>>>> >" >>>>> onSubmit=3D"this.value=3D'Please >>>>> Wait...'; this.disabled=3Dtrue;" /> >>>>> Which works in IE but not Firefox. >>>>> >>>>> Previously had; >>>>> >" >>>>> onSubmit=3D"this.disabled=3Dtrue;return true;" /> >>>>> Which worked in Firefox but not IE. >>>>> >>>>> >>>>> >>>>> Thanks all, > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dpics&category(= 8 >=20 "Dan Strong"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Off-Topic: Automatic FTP scripts for OSX (2003) Number of Feilds Passed to [append] (2000) PIXO (1997) [cart][date][time] (2003) [shownext] and descending order (1997) Variable Prices (1998) WebCat for Unix?? (1997) Showif vs. IF/then/else (2001) Running 2 two WebCatalog.acgi's (1996) question: Eudora 3.1.1 (1997) url value (2002) WC2f3 (1997) Physical Security for WebCatalog Directories (1997) What am I doing wrong? (2000) Sami -pdf (1998) SiteGuard Admin Feature ? (1997) restart needed???? (1997) WebDNA Quick Reference (Reserved Words) (2000) Bug Report, maybe (1997) comma-delimited email (1998)