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:

Status of variable hierarchy changes? (2000) F3 crashing server (1997) French characters in variables (2001) with Link i need to (1997) Linux Beta4 Problem (2000) WebCat2: Found Items syntax, etc. (1997) [WriteFile] problems (1997) Ampersand is breaking search context (1999) [WebDNA] Updating a WebDNA db using AJAX? (2016) database search help (2003) Error.html (1997) multiple search commands (1997) Is there a way to just get to the last record in the database? (1997) MATH TIME (1997) Multiple Pulldowns (1997) upgrade? (1997) An Isnumeric function of some kind (2001) Unit Cost Look Up (2001) Not really WebCat (1997) Beta 3.0.3 fix for serial# problem (Mac) (1998)