help with http upload again

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34613
interpreted = N
texte = Sorry, the original message might have been a little confusing so if you did not understand try this one.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:Here is the form information in for the first tpl file: ...
Select the file:
...===================================>> It is passed to the next tpl file ===================================>> . . .[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)
Sorry, the original message might have been a little confusing so if you did not understand try this one.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:Here is the form information in for the first tpl file: ... Select the file:
...===================================>> It is passed to the next tpl file ===================================>> . . .[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:

WC2b15 - [HTMLx]...[/HTMLx] problems (1997) WebCatalog can't find database (1997) restart needed???? (1997) Need help with emailer- 2 issues (1997) re: keep W* in front applescript? (try Cron) (1998) [LOOKUP] (1997) WCS Newbie question (1997) default value from Lookup (was Grant, please help me) (1997) SiteCheck & WebCat ? (1997) RE: [isfolder] and [filename] (1997) Parse question (2005) Mass Mail (2000) [SHOWIF] PROBLEM (2000) [ShowNext] (1997) WebCatalog NT beta 18 now available (1997) Maximum of found items?? (2000) OLD ORDERS (1998) Help formatting search results w/ table (1997) Tiny Store (1998) PCS Frames-Default page is solution! (1997)