help with http upload

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34611
interpreted = N
texte = Hello all!I have been working with the http upload feature of webcat 4.0, but have run into difficulty getting it to work across multiple OSs and browsers. Everything works fine on my G4 400 running OS 9.0.4 on both Netscape 4.73 and IE 4.5. BUT I am not having alot of luck with this on a mac 8100 running OS 8.0 and navigator 4.73 NOR on a 7600 running 8.1 with navigator 3.01 NOR on a Compaq Presario running windows 2000 and Navigator 4.73.My WebDNA is set up to first upload a thumbnail image of a product. If the thumbnail fits within the width, height and size parameters for a thumbnail image, it is uploaded to a directory where thumbnails live. The image is uploaded and the user is then prompted to upload a larger image of the product.Several things happen when the upload does not work. Sometimes the browser hangs and does not return any HTML, while other times it does not display the correct filesize information (it says the file is 8448 wide, when it is really 150 wide) or it ignores the [showifs] that delete the file if it is too wide, tall or big and the image gets uploaded to the directory and stays there. I have not seen any real consistency in these occurances.Here is the code I am working with and if anyone has any suggestions or sees any problems PLEASE LET ME KNOW. I greatly appreciate the help: . . .[text]thename=[/text] [formvariables] [showif [url][name][/url]^[url]thename[/url]] [text]thename=[value][/text] [/showif] [/formvariables] [text]vendor=[/text] [formvariables] [showif [url][name][/url]^[url]vendor[/url]] [text]vendor=[value][/text] [/showif] [/formvariables][hideif [thename]=][formvariables] [showif [url][name][/url]^[url]theFile[/url]] [writefile file=../cats/[vendor]/prothumb/[thename]&secure=F][value][/writefile] [/showif] [/formvariables][formvariables][showif [url][name][/url]^[url]theFile[/url]] [FileInfo ../cats/[vendor]/prothumb/[thename]] [showif [ImageWidth]>70] [DELETEFILE file=../cats/[vendor]/prothumb/[thename]] ERROR: The file you are trying to upload is too wide. It measures [ImageWidth] pixels wide. It cannot be any wider than 70 pixels.

[/showif][showif [ImageHeight]>116] [DELETEFILE file=../cats/[vendor]/prothumb/[thename]] ERROR: The file you are trying to upload is too tall. It measures [ImageHeight] pixels high. It cannot be any taller than 116 pixels.

[/showif][showif [size]>15000] [DELETEFILE file=../cats/[vendor]/prothumb/[thename]] ERROR: The file you are trying to upload is too large. It is [math]ceil([size]/1000)[/math]k. It cannot be any larger than 15k in file size.

[/showif] [If (([ImageWidth]>70) | ([ImageHeight]>116) | ([size]>15000))][then] Please make any necessary modifications to the image, and try to upload the thumbnail image again.
Select the file:
[/then] [else] The thumbnail image has been uploaded.
Please upload a product image for the item you are adding.

Select the file:
[/else][/if] [/FileInfo] [/showif] [/formvariables] [/hideif]__________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. help with http upload again (Jeff Grady 2000)
  2. help with http upload (Jeff Grady 2000)
Hello all!I have been working with the http upload feature of webcat 4.0, but have run into difficulty getting it to work across multiple OSs and browsers. Everything works fine on my G4 400 running OS 9.0.4 on both Netscape 4.73 and IE 4.5. BUT I am not having alot of luck with this on a mac 8100 running OS 8.0 and navigator 4.73 NOR on a 7600 running 8.1 with navigator 3.01 NOR on a Compaq Presario running windows 2000 and Navigator 4.73.My WebDNA is set up to first upload a thumbnail image of a product. If the thumbnail fits within the width, height and size parameters for a thumbnail image, it is uploaded to a directory where thumbnails live. The image is uploaded and the user is then prompted to upload a larger image of the product.Several things happen when the upload does not work. Sometimes the browser hangs and does not return any HTML, while other times it does not display the correct filesize information (it says the file is 8448 wide, when it is really 150 wide) or it ignores the [showifs] that delete the file if it is too wide, tall or big and the image gets uploaded to the directory and stays there. I have not seen any real consistency in these occurances.Here is the code I am working with and if anyone has any suggestions or sees any problems PLEASE LET ME KNOW. I greatly appreciate the help: . . .[text]thename=[/text] [formvariables] [showif [url][name][/url]^[url]thename[/url]] [text]thename=[value][/text] [/showif] [/formvariables] [text]vendor=[/text] [formvariables] [showif [url][name][/url]^[url]vendor[/url]] [text]vendor=[value][/text] [/showif] [/formvariables][hideif [thename]=][formvariables] [showif [url][name][/url]^[url]theFile[/url]] [writefile file=../cats/[vendor]/prothumb/[thename]&secure=F][value][/writefile] [/showif] [/formvariables][formvariables][showif [url][name][/url]^[url]theFile[/url]] [FileInfo ../cats/[vendor]/prothumb/[thename]] [showif [ImageWidth]>70] [DELETEFILE file=../cats/[vendor]/prothumb/[thename]] ERROR: The file you are trying to upload is too wide. It measures [ImageWidth] pixels wide. It cannot be any wider than 70 pixels.

[/showif][showif [ImageHeight]>116] [DELETEFILE file=../cats/[vendor]/prothumb/[thename]] ERROR: The file you are trying to upload is too tall. It measures [ImageHeight] pixels high. It cannot be any taller than 116 pixels.

[/showif][showif [size]>15000] [DELETEFILE file=../cats/[vendor]/prothumb/[thename]] ERROR: The file you are trying to upload is too large. It is [math]ceil([size]/1000)[/math]k. It cannot be any larger than 15k in file size.

[/showif] [If (([ImageWidth]>70) | ([ImageHeight]>116) | ([size]>15000))][then] Please make any necessary modifications to the image, and try to upload the thumbnail image again. Select the file:
[/then] [else] The thumbnail image has been uploaded.
Please upload a product image for the item you are adding.

Select the file:
[/else][/if] [/FileInfo] [/showif] [/formvariables] [/hideif]__________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.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://search.smithmicro.com/ Jeff Grady

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:

Webmerch Error (1998) Search in 2 or more catalogs (1997) Am I going senile? (Price recalc based on quantity) (1997) Multiple Merchant Accounts? (1997) PCS Frames (1997) WC2b15 File Corruption (1997) F3 crashing server (1997) StoreBuilder Shopping Cart (2000) Getting Emailer to send mail (1997) SiteGuard Admin Feature ? (1997) ListFiles Bug (1998) WebCat2 several catalogs? (1997) emailer and bad addresses (1997) WebDNA 5 & iTools 7 (2003) Re: (1998) AW: AW: Credit card processing - UK (1997) includes and cart numbers (1997) WebCat2b12plugin - [search] is broken ... not! (1997) unitShipCost - setlineitem nevermind (2002) international time (1997)