Re: [WebDNA] Uploading Specific File Types
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102289
interpreted = N
texte = --Apple-Mail-7-196747529Content-Type: text/plain;charset=US-ASCII;format=flowed;delsp=yesContent-Transfer-Encoding: 7bitCoincidentally, I have been using lots of different things in jquery lately. It seems to be a very compact, stable and cross-platform library of JavaScript widgets like calendars, accordion menus and it includes file upload. The script can detect and restrict files by type, size, quantity, etc.Visit
. They have done some small, but important enhancements to the jquery file upload.Their version allows you to select multiple files while in the file dialog. Surprisingly, most file upload scripts only allow adding a single file each time you open the file dialog. Talk about frustrating! The uploadify version will probably save mice and keyboards everywhere.Anyone who uses SiteBuilder may have noticed that there is a .CAB file uploader that works in Windows IE. It places a GUI file browser right in a web page so users can navigate their own file tree, selecting and uploading in batches. Although it's probably a prime example of why Windows is so virus ridden, I still wish there was a JavaScript equivalent so that this feature would appear the same regardless of platform or browser.Either way, you have to assume that you're probably doing this for users that need to upload web content, but are not experienced enough for FTP or other means. That means that they will probably expect to be able to select multiple files to upload at a time.PatOn Mar 27, 2009, at 6:34 PM, Stuart Tremain wrote:> There must be a JS that would check these things before the user hit > the submit button ....>> Regards>> Stuart Tremain> IDFK Web Developments> AUSTRALIA> webdna@idfk.com.au>> On 28/03/2009, at 10:08 AM, Dan Strong wrote:>>> Exactly. Also the file-size thing is an issue since it sucks >> finding out 3GB later that the file is too big, or worse yet that >> 30 people all tried to upload 3GB files at once...>> -Dan>>>>>> On Sat, 28 Mar 2009 10:04:40 +1100>> Stuart Tremain wrote:>>> You could check that the files names contain allowed file types, >>> however that will not stop someone putting a false extension on a >>> file.>>> Regards>>> Stuart Tremain>>> IDFK Web Developments>>> AUSTRALIA>>> webdna@idfk.com.au>>> On 28/03/2009, at 8:57 AM, >> > wrote:>>>> I have a form that is allowing for a file upload. Is there a >>>> common practice for uploading only specific files types, I can't >>>> find anything in archives? Should I not be too concerned with >>>> limiting what they upload to my Windows 2003 Server if they are >>>> locked in to a specific folder? I'm guessing that I'll need to >>>> allow for 6-8 different files types in total.>>>> --------------------------------------------------------->>>> 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/>>> --------------------------------------------------------->>> 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/>>>> --------------------------------------------------------->> 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/>> ---------------------------------------------------------> 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/--Apple-Mail-7-196747529Content-Disposition: attachment;filename=smime.p7sContent-Type: application/pkcs7-signature;name=smime.p7sContent-Transfer-Encoding: base64MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGGTCCAtIwggI7oAMCAQICEBmvvAg5L6PclE8ruwo/gMYwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA4MDkyNzAxMTg1M1oXDTA5MDkyNzAxMTg1M1owPjEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEbMBkGCSqGSIb3DQEJARYMcG1Ad2ViZG5hLnVzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtb7ZYYJV7sbgqxdgpBU/qCRsIJYGNIo40L9odKmo6Y/mPBybeSry8KefqmuWoBXxc6xCvSSJD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E8ruwo/gMYwgYcGCyqGSIb3DQEJEAILMXigdjBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECEBmvvAg5L6PclE8ruwo/gMYwDQYJKoZIhvcNAQEBBQAEggEAN4iRaZiRhopKn34FjyO9FLSgTLBn1XTRTneuey61NXXtFlG7BWglQBVfGrTMmuCDM/R1YWhSsTBlIGrVjxGD79PSvERPWuM6z5ZvPHlIJuyKt6hNgll1GU68jaTHSxGIP12W/D1z+i6PpB7ClUmMwtYwFujnkDisYPs2HFfPXBl4nQxi+6Heifo1c72i7iMIOFqDCPeD3OnT3fH52eoXzMxsZ/OEl438cEb4vxVFNhwezTC2MGh7SMZ4vYPYS0mVZe0QKWx1vyDl0eS8TIbvHzLYB5gmX3lCyHS52Yahq+I41JLAgTxCaJz9kWjii7d/sgC5hKivvomdcW/fSSf5lQAAAAAAAA==--Apple-Mail-7-196747529--
Associated Messages, from the most recent to the oldest:
--Apple-Mail-7-196747529Content-Type: text/plain;charset=US-ASCII;format=flowed;delsp=yesContent-Transfer-Encoding: 7bitCoincidentally, I have been using lots of different things in jquery lately. It seems to be a very compact, stable and cross-platform library of JavaScript widgets like calendars, accordion menus and it includes file upload. The script can detect and restrict files by type, size, quantity, etc.Visit . They have done some small, but important enhancements to the jquery file upload.Their version allows you to select multiple files while in the file dialog. Surprisingly, most file upload scripts only allow adding a single file each time you open the file dialog. Talk about frustrating! The uploadify version will probably save mice and keyboards everywhere.Anyone who uses SiteBuilder may have noticed that there is a .CAB file uploader that works in Windows IE. It places a GUI file browser right in a web page so users can navigate their own file tree, selecting and uploading in batches. Although it's probably a prime example of why Windows is so virus ridden, I still wish there was a JavaScript equivalent so that this feature would appear the same regardless of platform or browser.Either way, you have to assume that you're probably doing this for users that need to upload web content, but are not experienced enough for FTP or other means. That means that they will probably expect to be able to select multiple files to upload at a time.PatOn Mar 27, 2009, at 6:34 PM, Stuart Tremain wrote:> There must be a JS that would check these things before the user hit > the submit button ....>> Regards>> Stuart Tremain> IDFK Web Developments> AUSTRALIA> webdna@idfk.com.au>> On 28/03/2009, at 10:08 AM, Dan Strong wrote:>>> Exactly. Also the file-size thing is an issue since it sucks >> finding out 3GB later that the file is too big, or worse yet that >> 30 people all tried to upload 3GB files at once...>> -Dan>>>>>> On Sat, 28 Mar 2009 10:04:40 +1100>> Stuart Tremain wrote:>>> You could check that the files names contain allowed file types, >>> however that will not stop someone putting a false extension on a >>> file.>>> Regards>>> Stuart Tremain>>> IDFK Web Developments>>> AUSTRALIA>>> webdna@idfk.com.au>>> On 28/03/2009, at 8:57 AM, >> > wrote:>>>> I have a form that is allowing for a file upload. Is there a >>>> common practice for uploading only specific files types, I can't >>>> find anything in archives? Should I not be too concerned with >>>> limiting what they upload to my Windows 2003 Server if they are >>>> locked in to a specific folder? I'm guessing that I'll need to >>>> allow for 6-8 different files types in total.>>>> --------------------------------------------------------->>>> 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/>>> --------------------------------------------------------->>> 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/>>>> --------------------------------------------------------->> 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/>> ---------------------------------------------------------> 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/--Apple-Mail-7-196747529Content-Disposition: attachment;filename=smime.p7sContent-Type: application/pkcs7-signature;name=smime.p7sContent-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5hKivvomdcW/fSSf5lQAAAAAAAA==--Apple-Mail-7-196747529--
Patrick McCormick
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:
problem: search crashes webstar (1997)
carriage returns in data (1997)
Location of Webcat site in folder hierarchy (1997)
ThisURL on Unix (2000)
Mac Vs WindowsNT (1997)
Help with dates (2001)
Attaching a plain text file via [sendmail] (2001)
Uh...can someone help me out with the b10? (1997)
(1997)
Problem with ShoppingCart.tpl refresh (2000)
update on wn searching (1997)
Hiding usernames and passwords in URL (1998)
database size? (1997)
MacAuthorize order data fields WAS:How To question... (1997)
SPAM is SPAM is SPAM.... Smith Micro - no competition (2000)
when is date system date or order date? (1997)
StoreBuilder UPS/XML code question ... (2003)
Snake Bites (1997)
A *secret* new webdna tag !!! (1999)
Error:Too many nested [xxx] contexts (1997)