Re: Limit picture size on upload

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 63604
interpreted = N
texte = I would love to see it to, as I am about to do something similar! Thanks. D. --------------------------------------------------------------- David Bastedo Ten Plus One Communications 416.603.2223x1 http://www.10plus1.com -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Dan Strong Sent: Tuesday, December 13, 2005 10:59 AM To: WebDNA Talk Subject: Re: Limit picture size on upload I've coincidentally just stayed up all night coding this very same thing, and I've gotten everything to work except the 'looping through the upload however many times' part. I'd really love to see your code, if only to figure out what's killing my muli-upload. -Dan On Tue, 13 Dec 2005 08:21:31 -0600 Clint Davis wrote: > Sorry about coming in late on this one, but... > > I have written something that we're using across multiple sites. You specify > a couple of global variables for all the file upload fields as well as some > variables specific to each field (like file size, dimensions for images, > etc.) All the upload code is in an includes file, and we loop through it > based on the number of upload fields in the form. We also use some > javascript to prevent special characters and spaces in file names. Finally, > we use ImageMagick to generate thumbnail images from the full size uploads > for some of this stuff. > > I'd be happy to share this stuff if anyone's interested. > > > > On 12/11/05 9:28 AM, "paul" wrote: > >> I fixed this problem, 4 hours sleep did the trick >> >> The only issue I have now is to find a way of restricting the size of the >> image, I need it to be no more than 400 x 400 max if possible >> >> Has anyone done this before, I am sure it has been >> >> THanks >> Paul >> >> >> ----- Original Message ----- >> From: "paul" >> To: "WebDNA Talk" >> Sent: Sunday, December 11, 2005 1:18 PM >> Subject: Re: Simple form with picture upload >> >> >>> Thanks, I found the scripts, one problem, I cannot seem to pass the cart >>> variable >>> >>>
>> action="uploadfilenow.htm"> >>> >>> >>> Thsi ignores the cart and allocates a new cart, if I remove the >>> ENCTYPE="multipart/form-data" the carts passed but the form doesnt work, >> if >>> I add?cart=[cart] still ignores the old cart value >>> >>> I am sooo tired cant think straigh, any ideas >>> >>> Thanks >>> Paul >>> >>> >>> >>> ----- Original Message ----- >>> From: "Donovan Brooke" >>> To: "WebDNA Talk" >>> Sent: Saturday, December 10, 2005 11:08 PM >>> Subject: Re: Simple form with picture upload >>> >>> >>>> Hi Paul, >>>> A gent (that used to post here quite often :-) ) >>>> by the name of Alain Russel (SP?) has a good http upload >>>> snippet at http://www.webdnadev.net/ >>>> >>>> Try that as a starting place. >>>> >>>> Cheers, >>>> Donovan >>>> >>>> >>>> >>>> >>>> paul wrote: >>>> >>>>> Hi >>>>> >>>>> I have a free adverts site where you can place and add in a category, >>>>> nothing special but simple >>>>> >>>>> I want to add the option of adding a picture, the storebuilder options >>> are >>>>> too complicated, I would like to do this on just one form and ensure >> the >>>>> picture is either a jpg or gif file >>>>> >>>>> Anyone have a little snippet or starting point >>>>> >>>>> ZThanks >>>>> Paul > > > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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: Limit picture size on upload ( Kenneth Grome 2005)
  2. Re: Limit picture size on upload ( lists@ehome.net 2005)
  3. Re: Limit picture size on upload ( divemar 2005)
  4. Re: Limit picture size on upload ( Donovan Brooke 2005)
  5. Re: Limit picture size on upload ( Clint Davis 2005)
  6. Re: Limit picture size on upload ( "David Bastedo" 2005)
  7. Re: Limit picture size on upload ( "paul" 2005)
  8. Re: Limit picture size on upload ( "Dan Strong" 2005)
  9. Re: Limit picture size on upload ( Alex McCombie 2005)
  10. Re: Limit picture size on upload ( Clint Davis 2005)
  11. Re: Limit picture size on upload ( Brian Fries 2005)
  12. Re: Limit picture size on upload ( Dale-List 2005)
  13. Re: Limit picture size on upload ( "paul" 2005)
I would love to see it to, as I am about to do something similar! Thanks. D. --------------------------------------------------------------- David Bastedo Ten Plus One Communications 416.603.2223x1 http://www.10plus1.com -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of Dan Strong Sent: Tuesday, December 13, 2005 10:59 AM To: WebDNA Talk Subject: Re: Limit picture size on upload I've coincidentally just stayed up all night coding this very same thing, and I've gotten everything to work except the 'looping through the upload however many times' part. I'd really love to see your code, if only to figure out what's killing my muli-upload. -Dan On Tue, 13 Dec 2005 08:21:31 -0600 Clint Davis wrote: > Sorry about coming in late on this one, but... > > I have written something that we're using across multiple sites. You specify > a couple of global variables for all the file upload fields as well as some > variables specific to each field (like file size, dimensions for images, > etc.) All the upload code is in an includes file, and we loop through it > based on the number of upload fields in the form. We also use some > javascript to prevent special characters and spaces in file names. Finally, > we use ImageMagick to generate thumbnail images from the full size uploads > for some of this stuff. > > I'd be happy to share this stuff if anyone's interested. > > > > On 12/11/05 9:28 AM, "paul" wrote: > >> I fixed this problem, 4 hours sleep did the trick >> >> The only issue I have now is to find a way of restricting the size of the >> image, I need it to be no more than 400 x 400 max if possible >> >> Has anyone done this before, I am sure it has been >> >> THanks >> Paul >> >> >> ----- Original Message ----- >> From: "paul" >> To: "WebDNA Talk" >> Sent: Sunday, December 11, 2005 1:18 PM >> Subject: Re: Simple form with picture upload >> >> >>> Thanks, I found the scripts, one problem, I cannot seem to pass the cart >>> variable >>> >>> >> action="uploadfilenow.htm"> >>> [cart]"> >>> >>> Thsi ignores the cart and allocates a new cart, if I remove the >>> ENCTYPE="multipart/form-data" the carts passed but the form doesnt work, >> if >>> I add?cart=[cart] still ignores the old cart value >>> >>> I am sooo tired cant think straigh, any ideas >>> >>> Thanks >>> Paul >>> >>> >>> >>> ----- Original Message ----- >>> From: "Donovan Brooke" >>> To: "WebDNA Talk" >>> Sent: Saturday, December 10, 2005 11:08 PM >>> Subject: Re: Simple form with picture upload >>> >>> >>>> Hi Paul, >>>> A gent (that used to post here quite often :-) ) >>>> by the name of Alain Russel (SP?) has a good http upload >>>> snippet at http://www.webdnadev.net/ >>>> >>>> Try that as a starting place. >>>> >>>> Cheers, >>>> Donovan >>>> >>>> >>>> >>>> >>>> paul wrote: >>>> >>>>> Hi >>>>> >>>>> I have a free adverts site where you can place and add in a category, >>>>> nothing special but simple >>>>> >>>>> I want to add the option of adding a picture, the storebuilder options >>> are >>>>> too complicated, I would like to do this on just one form and ensure >> the >>>>> picture is either a jpg or gif file >>>>> >>>>> Anyone have a little snippet or starting point >>>>> >>>>> ZThanks >>>>> Paul > > > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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/ "David Bastedo"

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:

Quickie question on the email templates (1997) [WebDNA] An unknown error occured // Deadlock avoided (2011) Re:2nd WebCatalog2 Feature Request (1996) The Mysterious '<' (1998) boldwords (2001) Searching multiple fields (1997) Email SMTP Error 411 (2006) Can't load tmpl files (1997) [WebDNA] MD5 Hash issue (2009) Summing fields (1997) Cancel Subscription (1996) Image maps/Webcat (1997) archiving images (2006) 2.0 Info (1997) [WriteFile] problems (1997) Wanted: More Math Functions (or, Can You Solve This?) (1997) Error Lob.db records error message not name (1997) decrypt and summ problems (1999) problem: search crashes webstar (1997) WCS Newbie question (1997)