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 ofwebcat 4.0, but have run intodifficulty getting it to work across multiple OSs andbrowsers. Everything worksfine on my G4 400 running OS 9.0.4 on both Netscape4.73 and IE 4.5. BUT I am not having alot of luck with this on a mac 8100 running OS 8.0and navigator 4.73NOR on a 7600 running 8.1 with navigator 3.01 NOR on aCompaq Presario runningwindows 2000 and Navigator 4.73.My WebDNA is set up to first upload a thumbnail imageof a product. If the thumbnail fits withinthe width, height and size parameters for a thumbnailimage, it is uploaded to a directory where thumbnailslive.The image is uploaded and the user is then prompted toupload a larger image of the product.Several things happen when the upload does not work. Sometimes the browserhangs and does not return any HTML, while other timesit does not display the correct filesize information (it says the file is 8448 wide, when it is really 150wide) or it ignores the [showifs] that delete the file if it istoo wide, tall or bigand the image gets uploaded to the directory and staysthere.I have not seen any real consistency in theseoccurances.Here is the code I am working with and if anyone hasany suggestions or sees anyproblems PLEASE LET ME KNOW. I greatly appreciatethe 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]][writefilefile=../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]]
The file you are trying to uploadis 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]]
The file you are trying to uploadis too tall. It measures [ImageHeight] pixels high. It cannot be any taller than 116pixels.[/showif][showif [size]>15000][DELETEFILE file=../cats/[vendor]/prothumb/[thename]]
The file you are trying to uploadis too large. It is [math]ceil([size]/1000)[/math]k. It cannot be any larger than 15k in filesize.[/showif][If (([ImageWidth]>70) | ([ImageHeight]>116) |([size]>15000))][then]
Please makeany necessary modifications to the image, and try to upload the thumbnail image again.