Re: Limit picture size on upload

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 63600
interpreted = N
texte = Would be interested, everything else is working fine apart from the image stuff THanks Paul ----- Original Message ----- From: "Clint Davis" To: "WebDNA Talk" Sent: Tuesday, December 13, 2005 3:21 PM Subject: Re: Limit picture size on upload > 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/ 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)
Would be interested, everything else is working fine apart from the image stuff THanks Paul ----- Original Message ----- From: "Clint Davis" To: "WebDNA Talk" Sent: Tuesday, December 13, 2005 3:21 PM Subject: Re: Limit picture size on upload > 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/ "paul"

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:

Major Security Hole (1998) Migrating to NT (1997) oops private message leaked into talk list (1997) Help name our technology! (1997) system crashes, event log (1997) Emailer setup (1997) Multiple Sendmail Tags on One Page (2008) WebCat2final1 crashes (1997) upgrading (1997) Remote delivery (1998) Setting up WebCatalog with Retail Pro data (1996) charge.com (2005) Shared Webstar Directory (1998) NT beta ReadMe missing (b12-b15) (1997) Version f1 status (1997) Associative lookup style? + bit more (1997) Running 2 two WebCatalog.acgi's (1996) no [search] with NT (1997) Beta Bug in prefs (1997) WebCat2b15MacPlugin - showing [math] (1997)