Re: PDF Writefile problem
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 60712
interpreted = N
texte = Here is the code I am using to write the files. It works for Word, Excel,Zip, jpg, gif & text files, but not the PDF's:Page1 (Form Fields)[_document] is only the Name the file is to be written as.[_doctype] is the Type of document it is (Word, Excel, etc)[_documentfile] is the file upload field where the user selects the filethey wish to upload.Page2[formvariables][showif [url][name][/url]^[url]"action"[/url]][text]action=[value][/text][/showif] [showif [url][name][/url]^[url]"_idNumber"[/url]][text]_idNumber=[value][/text][/showif] [showif [url][name][/url]^[url]"_document"[/url]][text]_document=[value][/text][/showif] [showif [url][name][/url]^[url]"_doctype"[/url]][text]_doctype=[value][/text][/showif] [showif [url][name][/url]^[url]"_docid"[/url]][text]_docid=[value][/text][/showif][!]||||||||||||||| WRITE FILES FOR DOCS -||||||||||||||| [/!][showif [url][name][/url]^[url]"_documentfile"[/url]] [hideif [value]=] [writefile file=docs/[_document].[showif[_doctype]=JPG]jpg[/showif][showif [_doctype]=GIF]gif[/showif][showif[_doctype]=PDF]pdf[/showif][showif [_doctype]=TEXT]txt[/showif][showif[_doctype]=EXCEL]xls[/showif][showif [_doctype]=WORD]doc[/showif][showif[_doctype]=ZIP]zip[/showif]&secure=F][value][/writefile] [text]_documentfile=[_document].[showif[_doctype]=JPG]jpg[/showif][showif [_doctype]=GIF]gif[/showif][showif[_doctype]=PDF]pdf[/showif][showif [_doctype]=TEXT]txt[/showif][showif[_doctype]=EXCEL]xls[/showif][showif [_doctype]=WORD]doc[/showif][showif[_doctype]=ZIP]zip[/showif][/text] [/hideif] [showif [value]=] [text]_documentfile=[/text] [/showif] [/showif]I tried wrapping the [value] with [url][/url], but still nothing. It writesabsolutely nothing into the docs folder when this is ran for PDF. Any othersuggestions are greatly appreciated.[/formvariables]-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf OfJohn HillSent: Friday, January 07, 2005 5:08 PMTo: WebDNA TalkSubject: Re: PDF Writefile problemLook in the file - I'll bet you have some square bracket stuff in the filethat webdna is trying to interpret. Make sure you include the pdf as a rawfile with no interpreting.>Has anyone had any problems trying to do a [WRITEFILE] with a PDF file.When>I try this, the browser "spins" for a moment but no file gets written. I>have successfully written other file types, but PDF just doesnt want to>cooperate. I have the PDF stored on my machine and am trying to write itvia>a file upload on a form. Any ideas/suggestions would be greatlyappreciated.>>>Eric Miller>Web Developer/Programmer>The GoTricities Network>>>------------------------------------------------------------->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/----------------------------------- John A. Hill Oak Hill SoftwareWebsite Development/Consulting john@oakhillsoftware.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 toWeb 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:
Here is the code I am using to write the files. It works for Word, Excel,Zip, jpg, gif & text files, but not the PDF's:Page1 (Form Fields)[_document] is only the Name the file is to be written as.[_doctype] is the Type of document it is (Word, Excel, etc)[_documentfile] is the file upload field where the user selects the filethey wish to upload.Page2[formvariables][showif [url][name][/url]^[url]"action"[/url]][text]action=[value][/text][/showif] [showif [url][name][/url]^[url]"_idNumber"[/url]][text]_idNumber=[value][/text][/showif] [showif [url][name][/url]^[url]"_document"[/url]][text]_document=[value][/text][/showif] [showif [url][name][/url]^[url]"_doctype"[/url]][text]_doctype=[value][/text][/showif] [showif [url][name][/url]^[url]"_docid"[/url]][text]_docid=[value][/text][/showif][!]||||||||||||||| WRITE FILES FOR DOCS -||||||||||||||| [/!][showif [url][name][/url]^[url]"_documentfile"[/url]] [hideif [value]=] [writefile file=docs/[_document].[showif[_doctype]=JPG]jpg[/showif][showif [_doctype]=GIF]gif[/showif][showif[_doctype]=PDF]pdf[/showif][showif [_doctype]=TEXT]txt[/showif][showif[_doctype]=EXCEL]xls[/showif][showif [_doctype]=WORD]doc[/showif][showif[_doctype]=ZIP]zip[/showif]&secure=F][value][/writefile] [text]_documentfile=[_document].[showif[_doctype]=JPG]jpg[/showif][showif [_doctype]=GIF]gif[/showif][showif[_doctype]=PDF]pdf[/showif][showif [_doctype]=TEXT]txt[/showif][showif[_doctype]=EXCEL]xls[/showif][showif [_doctype]=WORD]doc[/showif][showif[_doctype]=ZIP]zip[/showif][/text] [/hideif] [showif [value]=] [text]_documentfile=[/text] [/showif] [/showif]I tried wrapping the [value] with [url][/url], but still nothing. It writesabsolutely nothing into the docs folder when this is ran for PDF. Any othersuggestions are greatly appreciated.[/formvariables]-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf OfJohn HillSent: Friday, January 07, 2005 5:08 PMTo: WebDNA TalkSubject: Re: PDF Writefile problemLook in the file - I'll bet you have some square bracket stuff in the filethat webdna is trying to interpret. Make sure you include the pdf as a rawfile with no interpreting.>Has anyone had any problems trying to do a [writefile] with a PDF file.When>I try this, the browser "spins" for a moment but no file gets written. I>have successfully written other file types, but PDF just doesnt want to>cooperate. I have the PDF stored on my machine and am trying to write itvia>a file upload on a form. Any ideas/suggestions would be greatlyappreciated.>>>Eric Miller>Web Developer/Programmer>The GoTricities Network>>>------------------------------------------------------------->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/----------------------------------- John A. Hill Oak Hill SoftwareWebsite Development/Consulting john@oakhillsoftware.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 toWeb 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/
"Eric Miller"
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:
Using Applescript to process WebCatalog functions (1998)
still having shipCost.db Problem (1997)
cart (1997)
[SHOWIF] (1997)
Three new problems ... (1997)
SQL Tutorial (1998)
[WebDNA] Post-Parse Script to remove extra returns. (2009)
Shopping Cart Module (2004)
New Webcatalog for Mac (1997)
Shopping Carts (2000)
[LOOKUP] (1997)
[WebDNA] Triggers Failing (2008)
RE: [WebDNA] WebDNA on Ubuntu 12.x (2013)
Re:Emailer and encryption (1997)
quantity minimum problem (1997)
NT Setup (1998)
[WebDNA] eCommerce in 7.0 but not in 7.1? (2012)
[isfile] ? (1997)
Webcatalog Future?!? (2000)
Re:no [search] with NT (1997)