Re: Multipart Form - Ascertain File Type

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 68746
interpreted = N
texte = Also, a little OT but we just built a JS based progress bar for uploads in WebDNA. We let users upload large files (videos) to our server then we in turn upload it to Amazon S3. We accomplish this via: 1. On the upload page, we use the hidden iframe technique and use JS to submit the form for uploading. 2. On the upload form, we first read the HTTP header to get the filesize, filename, and JobID from the JS layer. 3. We write that filesize, filename, and jobid to a table. 4. The JS layer then pings another file that checks on the status of the uploaded file simply using the fileinfo tag and reading the size. This gives us an accurate uploaded size to our server. 5. We use Ruby to upload to S3 and have the output of the script write to disk. 6. The file that the JS layer pings is also aware of checking the output from JS to read the status from Ruby. 7. The JS layer then can show an accurate progress bar which for some videos may take quite some time to go to us then Amazon S3. Quite a hack but this works across all WebDNA platforms agnostic of the Webserver. And it works like a charm. -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Donovan Brooke Sent: Friday, March 30, 2007 9:15 AM To: WebDNA Talk Subject: Re: Multipart Form - Ascertain File Type Tana Adams wrote: > Ok, you guys have definitely given me something to think about. > Knowing that I don't necessarily have the ability to determine the > difference between a text file and a potential virus changes my plans > a bit. I've been using this process for our intranet, which wasn't an > issue. But we're considering opening this capability up to some > clients. Not sure it's really that safe now. > > Gary, if you happen to locate the template you mentioned, could you > please email it to me at tana@volleyhut.com? I'd really appreciate > it. I can still use that capability for our intranet. > > Thanks so much for all your responses. They were very helpful. > > Tana Tana, you can find that type of upload ability at: http://www.webdnadev.net/ or you can do as Matthew stated and look in the SiteBuilder code. Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:> (608) 835-2476 | Forum:> http://egg.bz/forum/ Web Sites:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Multipart Form - Ascertain File Type ( "Olin Lagon" 2007)
  2. Re: Multipart Form - Ascertain File Type ( Donovan Brooke 2007)
  3. Re: Multipart Form - Ascertain File Type ( "Tana Adams" 2007)
  4. Re: Multipart Form - Ascertain File Type ( Matthew A Perosi 2007)
  5. Re: Multipart Form - Ascertain File Type ( Gary Krockover 2007)
  6. Re: Multipart Form - Ascertain File Type ( John Peacock 2007)
  7. Multipart Form - Ascertain File Type ( "Tana Adams" 2007)
Also, a little OT but we just built a JS based progress bar for uploads in WebDNA. We let users upload large files (videos) to our server then we in turn upload it to Amazon S3. We accomplish this via: 1. On the upload page, we use the hidden iframe technique and use JS to submit the form for uploading. 2. On the upload form, we first read the HTTP header to get the filesize, filename, and JobID from the JS layer. 3. We write that filesize, filename, and jobid to a table. 4. The JS layer then pings another file that checks on the status of the uploaded file simply using the fileinfo tag and reading the size. This gives us an accurate uploaded size to our server. 5. We use Ruby to upload to S3 and have the output of the script write to disk. 6. The file that the JS layer pings is also aware of checking the output from JS to read the status from Ruby. 7. The JS layer then can show an accurate progress bar which for some videos may take quite some time to go to us then Amazon S3. Quite a hack but this works across all WebDNA platforms agnostic of the Webserver. And it works like a charm. -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Donovan Brooke Sent: Friday, March 30, 2007 9:15 AM To: WebDNA Talk Subject: Re: Multipart Form - Ascertain File Type Tana Adams wrote: > Ok, you guys have definitely given me something to think about. > Knowing that I don't necessarily have the ability to determine the > difference between a text file and a potential virus changes my plans > a bit. I've been using this process for our intranet, which wasn't an > issue. But we're considering opening this capability up to some > clients. Not sure it's really that safe now. > > Gary, if you happen to locate the template you mentioned, could you > please email it to me at tana@volleyhut.com? I'd really appreciate > it. I can still use that capability for our intranet. > > Thanks so much for all your responses. They were very helpful. > > Tana Tana, you can find that type of upload ability at: http://www.webdnadev.net/ or you can do as Matthew stated and look in the SiteBuilder code. Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:> (608) 835-2476 | Forum:> http://egg.bz/forum/ Web Sites:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Olin Lagon"

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:

RE: Languages (1997) Last freebie (1998) Meet your competition (2000) page redirect in webDNA (1997) WebCat2: Items xx to xx shown, etc. (1997) [BULK] Fwd: [WebDNA] [BULK] WebDNA discovery in the Console - [having many crashes] (2011) [WebDNA] [sendmail] random duplicates (2010) Multi-User Security on *nix using mod_rewrite (2002) plugin-acgi, different results (1997) Changing the value assigned to a formvariable (2000) Converting a Magazine to a Web Site with WebCat (1999) searchable list archive (1997) [WebDNA] Store module/site (2012) [WebDNA] Can WebDNA corrupt a db? (2012) form data submission gets truncated (1997) WebCatalog 2.0 b 15 mac (1997) Mondo amounts of Mail [long] (1999) target=_blank and form variables (1997) 2.0 Info (1997) WebDNA 4.5 upgrade? (2002)